Skip to content

Commit

Permalink
Add condition to check for absence of imageId before doing confetti (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
byronwall committed Jan 8, 2024
1 parent 1a13a98 commit 82647fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/awards/GlobalNotifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export function GlobalNotifications() {
const showConfetti = awards.some(
(award) =>
award.awardType === "WORD_COUNT" &&
award.awardValue === confettiWordTarget
award.awardValue === confettiWordTarget &&
!award.imageId
);

return (
Expand Down

0 comments on commit 82647fd

Please sign in to comment.