Updating value passed to demostickers component

This commit is contained in:
Lucid Kobold
2022-02-10 02:21:55 -06:00
parent 622ec49933
commit 87a14c450b
2 changed files with 6 additions and 3 deletions

View File

@@ -102,7 +102,9 @@ const Day = ({
key={stickerState === null ? Math.random() : stickerState}
fontSize="1.5rem"
>
<DemoStickers stickerVal={stickerState} />
<DemoStickers
stickerVal={stickerState === null ? null : stickerState}
/>
</Box>
</VStack>
)}
@@ -143,7 +145,9 @@ const Day = ({
key={stickerState === null ? Math.random() : stickerState}
fontSize="1.5rem"
>
<DemoStickers stickerVal={stickerState} />
<DemoStickers
stickerVal={stickerState === null ? null : stickerState}
/>
</Box>
<StickersContextProvider>
{isBefore(date, endOfDay(new Date())) && (