Skip to content

Commit

Permalink
Show toast with clock emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
camilovegag committed May 24, 2024
1 parent 2002f7a commit 70542cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/berlin/src/pages/Cycle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ function Cycle() {

useEffect(() => {
if (cycle?.status === 'CLOSED') {
toast.success('Cycle has closed. Redirecting to the results page.');
toast('Cycle has closed. Redirecting to the results page.', {
icon: '⌛️',
});
navigate(`/events/${eventId}/cycles/${cycleId}/results`);
}
}, [cycle?.status]);

Check warning on line 84 in packages/berlin/src/pages/Cycle.tsx

View workflow job for this annotation

GitHub Actions / Check linting

React Hook useEffect has missing dependencies: 'cycleId', 'eventId', and 'navigate'. Either include them or remove the dependency array
Expand Down

0 comments on commit 70542cf

Please sign in to comment.