From 93bea6972db566eca2478911e42c2d42e088fbf2 Mon Sep 17 00:00:00 2001 From: Morgan Ludtke <42942267+ludtkemorgan@users.noreply.github.com> Date: Thu, 16 Nov 2023 17:02:19 -0600 Subject: [PATCH] fix: trim mfaCode on submit (#3717) --- sites/partners/src/lib/users/signInHelpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sites/partners/src/lib/users/signInHelpers.ts b/sites/partners/src/lib/users/signInHelpers.ts index 0fccdfb031..b4cb56fdf1 100644 --- a/sites/partners/src/lib/users/signInHelpers.ts +++ b/sites/partners/src/lib/users/signInHelpers.ts @@ -94,7 +94,7 @@ export const onSubmitMfaCode = ( ) => async (data: { mfaCode: string }) => { const { mfaCode } = data try { - await login(email, password, mfaCode, mfaType) + await login(email, password, mfaCode?.trim(), mfaType) resetNetworkError() await router.push("/") } catch (error) {