Skip to content

Commit

Permalink
Merge pull request #83 from wildjames/dev
Browse files Browse the repository at this point in the history
Only delete households when there are no users left in it
  • Loading branch information
wildjames authored Dec 2, 2023
2 parents 275b0ac + 8f76577 commit 7c876bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion todoqueue_frontend/src/components/households/households.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export const ManageHouseholds = ({ households, updateHouseholds, setShowHousehol
{household.name}
</span>
<div>
<button className="button delete-button" onClick={() => handleDelete(household.id)}>Delete</button>
{/* <button className="button delete-button" onClick={() => handleDelete(household.id)}>Delete</button> */}
<button className="button manage-users-button" onClick={() => handleOpenUsersPopup(household)}>Manage Users</button>
</div>
</div>
Expand Down

0 comments on commit 7c876bc

Please sign in to comment.