From f31e382345955dd81984e35710a21cc441c039df Mon Sep 17 00:00:00 2001 From: panteliselef Date: Fri, 31 May 2024 21:02:03 +0300 Subject: [PATCH] fix(clerk-js): Sms phone code verification lists available phone numbers on cancel (#3479) --- .changeset/eleven-toes-poke.md | 5 +++++ .../src/ui/components/UserProfile/MfaPhoneCodeScreen.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/eleven-toes-poke.md diff --git a/.changeset/eleven-toes-poke.md b/.changeset/eleven-toes-poke.md new file mode 100644 index 0000000000..4dfc59bf8e --- /dev/null +++ b/.changeset/eleven-toes-poke.md @@ -0,0 +1,5 @@ +--- +'@clerk/clerk-js': patch +--- + +Sms phone code verification lists available phone numbers on cancel. diff --git a/packages/clerk-js/src/ui/components/UserProfile/MfaPhoneCodeScreen.tsx b/packages/clerk-js/src/ui/components/UserProfile/MfaPhoneCodeScreen.tsx index c2945b79f9..3443d66ac2 100644 --- a/packages/clerk-js/src/ui/components/UserProfile/MfaPhoneCodeScreen.tsx +++ b/packages/clerk-js/src/ui/components/UserProfile/MfaPhoneCodeScreen.tsx @@ -41,7 +41,7 @@ export const MfaPhoneCodeScreen = withCardStateProvider((props: MfaPhoneCodeScre title={localizationKeys('userProfile.mfaPhoneCodePage.title')} resourceRef={ref} onSuccess={wizard.nextStep} - onReset={wizard.prevStep} + onReset={() => wizard.goToStep(2)} />