Skip to content

Commit

Permalink
fix: Link confetti animation with menu settings "alert - best time"
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlundberg committed Nov 23, 2023
1 parent 32dc624 commit e0fc7b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/timer/Timer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ export default function Timer() {
</div>
)}
<Confetti
active={global.best === lastSolve?.time && !isSolving}
active={
global.best === lastSolve?.time &&
!isSolving &&
settings.alerts.bestTime.status
}
config={config}
/>
{lastSolve &&
Expand Down

0 comments on commit e0fc7b5

Please sign in to comment.