From bb141a719fd9bc2d7680e539f2ff047deb88ee7e Mon Sep 17 00:00:00 2001 From: thaddmt <68032955+thaddmt@users.noreply.github.com> Date: Mon, 20 Nov 2023 12:49:34 -0800 Subject: [PATCH] fix: resend code forgot password (#4773) * fix: resend code forgot password * Create tidy-kids-rush.md --- .changeset/tidy-kids-rush.md | 5 +++++ .../ui/src/machines/authenticator/actors/forgotPassword.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/tidy-kids-rush.md diff --git a/.changeset/tidy-kids-rush.md b/.changeset/tidy-kids-rush.md new file mode 100644 index 00000000000..d080ca7ac91 --- /dev/null +++ b/.changeset/tidy-kids-rush.md @@ -0,0 +1,5 @@ +--- +"@aws-amplify/ui": patch +--- + +fix: resend code forgot password diff --git a/packages/ui/src/machines/authenticator/actors/forgotPassword.ts b/packages/ui/src/machines/authenticator/actors/forgotPassword.ts index 13b538d17cf..247ee4481c1 100644 --- a/packages/ui/src/machines/authenticator/actors/forgotPassword.ts +++ b/packages/ui/src/machines/authenticator/actors/forgotPassword.ts @@ -131,7 +131,7 @@ export function forgotPasswordActor({ tags: 'pending', entry: ['clearError', 'sendUpdate'], invoke: { - src: 'resetPassword', + src: 'handleResetPassword', onDone: { target: 'idle' }, onError: { actions: 'setRemoteError', target: 'idle' }, },