Skip to content

Commit 613e937

Browse files
committed
fix(account): hide loading state on passkey creation button
Use isDisabled instead of isLoading while pre-fetching WebAuthn registration options to avoid showing a loading spinner when the page first loads.
1 parent 24f48bf commit 613e937

File tree

1 file changed

+2
-1
lines changed
  • packages/account/src/pages/PasskeyBinding

1 file changed

+2
-1
lines changed

packages/account/src/pages/PasskeyBinding/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ const PasskeyBinding = () => {
200200
title="action.continue"
201201
type="primary"
202202
className={styles.submitButton}
203-
isLoading={loading || !registrationData}
203+
isLoading={loading}
204+
isDisabled={!registrationData}
204205
onClick={() => {
205206
void handleAddPasskey();
206207
}}

0 commit comments

Comments
 (0)