Skip to content

Commit e56d700

Browse files
committed
fix: let otp errors propogate to prevent redirects
1 parent 126be8d commit e56d700

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/web/src/containers/login-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const LoginForm: FC = () => {
5656

5757
if (user.otpRequired && loginInfo) {
5858
return (
59-
<div>
59+
<div className="w-full">
6060
<OtpInput
6161
loading={loggingIn}
6262
invalid={invalidOTP}

packages/web/src/hooks/useUser.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ export const useLoginUser = () => {
4848
} else if (result.error) {
4949
if (result.error.message.toLowerCase().includes('otp')) {
5050
setOtp(true);
51-
return;
5251
}
5352

5453
throw result.error;

0 commit comments

Comments
 (0)