Skip to content

Commit

Permalink
Merge pull request #272 from boostcampwm-2024/feat/#271-rest-count
Browse files Browse the repository at this point in the history
입장 flag 계산식 변경
  • Loading branch information
qkdl60 authored Dec 3, 2024
2 parents 07c4ef8 + 6e1fcd6 commit 705345f
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
Expand Up @@ -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 });
Expand Down

0 comments on commit 705345f

Please sign in to comment.