Skip to content

Commit

Permalink
Merge pull request #80 from alapanoski/main
Browse files Browse the repository at this point in the history
! Do not merge ! until iftar time
  • Loading branch information
alllenshibu authored Mar 26, 2023
2 parents abf1f36 + 9a2efae commit 87c5553
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/components/Food/Food.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,21 @@ function Food() {
setUserId("");
return;
}
if (
registerList.find((registerEntry) => registerEntry.band_id === userId)
.users.food_preference !== "Iftar Box"
) {
console.log("pref");
console.log(
registerList.find(
(registerEntry) => registerEntry.band_id === userId
).users.food_preference
);
toast.error("User has not opted for iftar box");
setUserId("");
return;
}

const { data, error } = await supabaseClient
.from("food_log")
.select()
Expand Down

1 comment on commit 87c5553

@vercel
Copy link

@vercel vercel bot commented on 87c5553 Mar 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.