Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Verification Code Translation #1668

Merged
merged 1 commit into from
Oct 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/web/lib/features/unverified-email.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

export function UnverifiedEmail() {
const { user } = useAuthenticateUser();
const { t } = useTranslation('home');
const { t } = useTranslation();
const [verified, setVefified] = useState(true);

Check warning on line 13 in apps/web/lib/features/unverified-email.tsx

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (Vefified)

const { loading: resendLinkLoading, queryCall: resendLinkQueryCall } = useQuery(resentVerifyUserLinkAPI);

Expand All @@ -22,21 +22,21 @@
// getAccessTokenCookie()
// );
// // close message popup
// setVefified(true);

Check warning on line 25 in apps/web/lib/features/unverified-email.tsx

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (Vefified)
// }, [setVefified]);

Check warning on line 26 in apps/web/lib/features/unverified-email.tsx

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (Vefified)

useEffect(() => {
const hasVerified = user ? user.isEmailVerified : true;

if (hasVerified) {
setVefified(true);

Check warning on line 32 in apps/web/lib/features/unverified-email.tsx

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (Vefified)
return;
}

const closed = window.localStorage.getItem('unverified-message-closed') === getAccessTokenCookie();

if (closed) {
setVefified(true);

Check warning on line 39 in apps/web/lib/features/unverified-email.tsx

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (Vefified)
return;
}

Expand Down Expand Up @@ -127,7 +127,7 @@
<div className="flex items-center justify-between w-full mt-6">
<div className="flex flex-col items-start">
<div className="text-xs font-normal text-gray-500 dark:text-gray-400">
{"Didn't recieve code ?"}

Check warning on line 130 in apps/web/lib/features/unverified-email.tsx

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (recieve)
</div>

{resendLinkLoading && <SpinnerLoader size={22} className="self-center" />}
Expand Down
Loading