Skip to content

Commit e3c6e53

Browse files
authored
Merge branch 'feature/1cc_merge' into W-20448811-shopper-can-manually-enter-otp-in-login-flows-2
Signed-off-by: Jinsu Ha <91205717+hajinsuha1@users.noreply.github.com>
2 parents 2a74e96 + 5144503 commit e3c6e53

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/template-retail-react-app/app/pages/checkout-one-click/partials/one-click-contact-info.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ const ContactInfo = ({isSocialEnabled = false, idps = [], onRegisteredUserChoseG
244244
lastEmailSentRef.current = normalizedEmail
245245
return {isRegistered: true}
246246
} catch (error) {
247+
const message = formatMessage(getAuthorizePasswordlessErrorMessage(error.message))
248+
setError(message)
247249
// Keep continue button visible if email is valid (for unregistered users)
248250
if (isValidEmail(email)) {
249251
setShowContinueButton(true)
@@ -300,8 +302,7 @@ const ContactInfo = ({isSocialEnabled = false, idps = [], onRegisteredUserChoseG
300302
// Proceed to next step (shipping address)
301303
goToNextStep()
302304
} catch (error) {
303-
const message = formatMessage(getAuthorizePasswordlessErrorMessage(error.message))
304-
setError(message)
305+
setError(error.message)
305306
}
306307
}
307308

0 commit comments

Comments
 (0)