Skip to content

Commit db8527d

Browse files
committed
add condition to hide countdown if less than 1000ms
1 parent 21b38d0 commit db8527d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/auth/RefreshToken.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ onMounted(async () => {
2222
<template>
2323
<div v-if="user" class="mt-10 sm:mx-auto sm:w-full sm:max-w-[480px]">
2424
<div class="prose dark:prose-invert text-center py-8" v-if="willRedirect">
25-
redirecting in {{ Math.round(countdown / 1000) }}s ...
25+
<div v-if="countdown < 1000"> redirecting...</div>
26+
<div v-else>
27+
redirecting in {{ Math.round(countdown / 1000) }}s ...
28+
</div>
2629
</div>
2730
<BaseCard>
2831
<div v-if="isLoggedIn">

0 commit comments

Comments
 (0)