diff options
Diffstat (limited to '')
-rw-r--r-- | internal/chore/handler.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/chore/handler.go b/internal/chore/handler.go index 919e838..d15d4e7 100644 --- a/internal/chore/handler.go +++ b/internal/chore/handler.go @@ -488,7 +488,7 @@ func (h *Handler) editChore(c *gin.Context) { go func() { h.nPlanner.GenerateNotifications(c, updatedChore) }() - if oldChore.ThingChore.ThingID != 0 { + if oldChore.ThingChore != nil { // TODO: Add check to see if dissociation is necessary h.tRepo.DissociateThingWithChore(c, oldChore.ThingChore.ThingID, oldChore.ID) |