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) {