Skip to content

Commit

Permalink
πŸ› update remaining logic
Browse files Browse the repository at this point in the history
  • Loading branch information
dxanh97 committed Oct 30, 2024
1 parent b1fa10d commit b7ac3c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/RoundLogCarousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ function RoundLogCarousel(props: Props) {
statsMap.set(x, amount);
};

const cantTakeRemaining = remaining === 0 || remaining === stat;
const cantTakeRemaining =
(remaining === 0 && stat === 0) ||
(remaining !== 0 && remaining === stat);

return (
<Carousel.Slide key={x}>
Expand Down

0 comments on commit b7ac3c6

Please sign in to comment.