From eb0ab87d34563bbcfb84aaa9c5ea8de66b827a93 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Mon, 16 Sep 2024 17:19:30 +0600 Subject: [PATCH] fix: progress nudge count --- .../AuthenticationFlow/EmailLoginForm.tsx | 13 ++++++++----- src/components/FrameRenderer/ProgressNudge.tsx | 7 +++++-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/components/AuthenticationFlow/EmailLoginForm.tsx b/src/components/AuthenticationFlow/EmailLoginForm.tsx index f01b96d53..ca99e837b 100644 --- a/src/components/AuthenticationFlow/EmailLoginForm.tsx +++ b/src/components/AuthenticationFlow/EmailLoginForm.tsx @@ -1,6 +1,6 @@ import Cookies from 'js-cookie'; import type { FormEvent } from 'react'; -import { useState } from 'react'; +import { useId, useState } from 'react'; import { httpPost } from '../../lib/http'; import { TOKEN_COOKIE_NAME, setAuthToken } from '../../lib/jwt'; @@ -53,13 +53,16 @@ export function EmailLoginForm(props: EmailLoginFormProps) { setError(error?.message || 'Something went wrong. Please try again later.'); }; + const emailFieldId = `form:${useId()}`; + const passwordFieldId = `form:${useId()}`; + return (
-