We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90a003d commit 03e8926Copy full SHA for 03e8926
1 file changed
apps/web/components/public/payments/login-form.tsx
@@ -78,8 +78,6 @@ export function LoginForm({ onLoginComplete }: LoginFormProps) {
78
}
79
80
await requestCode(emailValue);
81
-
82
- setLoginStep("otp");
83
};
84
85
const requestCode = async function (email: string) {
@@ -92,8 +90,11 @@ export function LoginForm({ onLoginComplete }: LoginFormProps) {
92
90
if (error) {
93
91
toast({
94
title: TOAST_TITLE_ERROR,
95
- description: error as any,
+ description: error.message as any,
+ variant: "destructive",
96
});
+ } else {
97
+ setLoginStep("otp");
98
99
} finally {
100
setLoading(false);
0 commit comments