From 86d06eb94866bf4b45e78c76e4dc3895333a1ca5 Mon Sep 17 00:00:00 2001 From: Luna McNulty Date: Mon, 11 Dec 2023 01:37:03 -0500 Subject: [PATCH] Fix = vs == in find user --- site/gatsby-site/src/components/checklists/CheckListForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/gatsby-site/src/components/checklists/CheckListForm.js b/site/gatsby-site/src/components/checklists/CheckListForm.js index 554ecda6ba..4e77fde626 100644 --- a/site/gatsby-site/src/components/checklists/CheckListForm.js +++ b/site/gatsby-site/src/components/checklists/CheckListForm.js @@ -36,7 +36,7 @@ export default function CheckListForm({ const userIsOwner = values.owner_id == user.id; - const owner = users.find((u) => (u.userId = values.owner_id)); + const owner = users.find((u) => u.userId == values.owner_id); const [deleteChecklist] = useMutation(DELETE_CHECKLIST);