Skip to content

Commit 2f4241a

Browse files
author
Rajat
committed
Removed unused var
1 parent 03e8926 commit 2f4241a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

apps/web/components/public/payments/login-form.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export function LoginForm({ onLoginComplete }: LoginFormProps) {
9090
if (error) {
9191
toast({
9292
title: TOAST_TITLE_ERROR,
93-
description: error.message as any,
93+
description: error.message,
9494
variant: "destructive",
9595
});
9696
} else {
@@ -106,14 +106,15 @@ export function LoginForm({ onLoginComplete }: LoginFormProps) {
106106
const code = form.getValues("otp");
107107
try {
108108
setLoading(true);
109-
const { data, error } = await authClient.signIn.emailOtp({
109+
const { error } = await authClient.signIn.emailOtp({
110110
email: email.trim().toLowerCase(),
111111
otp: code!,
112112
});
113113
if (error) {
114114
toast({
115115
title: TOAST_TITLE_ERROR,
116-
description: `Can't sign you in at this time: ${error.message}`,
116+
description: error.message,
117+
variant: "destructive",
117118
});
118119
} else {
119120
const profile = await getUserProfile(address.backend);

0 commit comments

Comments
 (0)