Skip to content

Commit

Permalink
Add toast
Browse files Browse the repository at this point in the history
  • Loading branch information
camilovegag committed May 24, 2024
1 parent eed728f commit 1030a95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/berlin/src/pages/Cycle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ function Cycle() {

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

Check warning on line 82 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 1030a95

Please sign in to comment.