Skip to content

Commit

Permalink
fix: trim mfaCode on submit (#3717)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludtkemorgan authored Nov 16, 2023
1 parent a2bd2d5 commit 93bea69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sites/partners/src/lib/users/signInHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 93bea69

Please sign in to comment.