From ee55b0192b0d71bdfed4570641138c6e50ad2d0e Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Tue, 4 Apr 2023 00:47:25 +0600 Subject: [PATCH] fix: verify account text --- src/pages/verify-account.astro | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/pages/verify-account.astro b/src/pages/verify-account.astro index e74010e13..6acf06259 100644 --- a/src/pages/verify-account.astro +++ b/src/pages/verify-account.astro @@ -22,11 +22,7 @@ import SettingLayout from '../layouts/SettingLayout.astro'; class='mx-auto hidden max-w-sm text-center text-sm text-slate-500' data-verification-success > - If you are not redirected in a few seconds, please click the button - below. - Redirect to home. + Redirecting you to the home page.

@@ -71,10 +67,8 @@ import SettingLayout from '../layouts/SettingLayout.astro'; Cookies.remove(TOKEN_COOKIE_NAME); } - // After 3 seconds, redirect the user to the home page - setTimeout(() => { - window.location.href = '/'; - }, 3000); + // Redirect the user to the home page + window.location.href = '/'; } else { spinner?.remove(); error?.classList.remove('hidden');