Skip to content

Commit 8beb99a

Browse files
committed
fix: fix when we show the back button on mfa webauthn screens
1 parent 7e83dc2 commit 8beb99a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/build/webauthnprebuiltui.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/ts/recipe/webauthn/components/themes/mfa/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function MFAThemeRouter(props: WebAuthnMFAProps): JSX.Element {
134134
]);
135135

136136
const showBackButtonOnSignUpConfirmation = React.useMemo(() => {
137-
return email !== undefined || props.featureState.hasRegisteredPassKey || props.featureState.showBackButton;
137+
return email !== "" || props.featureState.hasRegisteredPassKey || props.featureState.showBackButton;
138138
}, [email, props.featureState.hasRegisteredPassKey, props.featureState.showBackButton]);
139139

140140
const onSignUp = React.useCallback(async () => {

0 commit comments

Comments
 (0)