Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
qkdl60 committed Dec 3, 2024
2 parents e1e6088 + 705345f commit e9d18ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion front/src/pages/WaitingQueuePage/index.tsx
Original file line number Diff line number Diff line change
@@ -109,7 +109,9 @@ export default function WaitingQueuePage() {
firstWaitingTime.current == null
? 0
: ((firstWaitingTime.current - waitingTime!) / firstWaitingTime.current!) * 100;
const canGo = restCount !== null && restCount <= 0;

const canGo = restCount !== null && restCount < 0;

if (canGo) {
if (eventId) {
navigate(ROUTE_URL.EVENT.DETAIL(Number(eventId)), { replace: true });

0 comments on commit e9d18ba

Please sign in to comment.