Skip to content

Commit

Permalink
Added fix for removal of info when drinkData is false
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurGartner committed Sep 11, 2023
1 parent 81a69d4 commit 2eb6551
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/src/components/DrinkCarousel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ function DrinkCarousel(props) {
curDate={props.curDate}
next5pm={props.next5pm}
/>
<div className={`${props.dayData == null && "hidden"} md:hidden w-full`}>
<div
className={`${
(props.dayData == null || props.dayData == false) && "hidden"
} md:hidden w-full`}
>
<div className="text-black dark:text-white font-bold text-md text-center w-full">
{props.dayData?.drinkDetails?.strDrink}
</div>
Expand Down

0 comments on commit 2eb6551

Please sign in to comment.