Skip to content

Commit 2ce7ffb

Browse files
committed
Change floor to ceiling and reverse timer label
1 parent e586597 commit 2ce7ffb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/src/app/(auth)/match/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ const showLoadingSpinner = (onCancel: () => void) => {
5555
Swal.showLoading();
5656
const timer = Swal.getPopup()!.querySelector("#timer");
5757
setInterval(() => {
58-
timer!.textContent = `${Math.floor(Swal.getTimerLeft() / 1000)}`;
58+
timer!.textContent = `${
59+
TIMEOUT_TIMER - Math.ceil(Swal.getTimerLeft() / 1000)
60+
}`;
5961
}, 100);
6062
},
6163
}).then((result) => {

0 commit comments

Comments
 (0)