Skip to content

Commit

Permalink
Don't warn about near the end if the game is won
Browse files Browse the repository at this point in the history
  • Loading branch information
Deykun committed Feb 3, 2025
1 parent 47dfb81 commit 53fc70f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/timeToNextDay/components/NextDailyTip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const NextDailyTip = ({
return (
<p
className={clsx('next-daily-tip', {
'next-daily-tip--is-near-end': shouldWarnIfNearEnd && minutesToNext <= nearEndMinutes,
'next-daily-tip--is-near-end': shouldWarnIfNearEnd && minutesToNext <= nearEndMinutes && endStatus !== GameStatus.Won,
})}
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{
Expand Down

0 comments on commit 53fc70f

Please sign in to comment.