Skip to content

Commit 4c444cc

Browse files
author
Rajat
committed
Removed unused vars
1 parent 92f3cc5 commit 4c444cc

2 files changed

Lines changed: 9 additions & 11 deletions

File tree

apps/web/app/(with-contexts)/(with-layout)/login/login-form.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export default function LoginForm({ redirectTo }: { redirectTo?: string }) {
118118
e.preventDefault();
119119
try {
120120
setLoading(true);
121-
const { data, error } = await authClient.signIn.emailOtp({
121+
const { error } = await authClient.signIn.emailOtp({
122122
email: email.trim().toLowerCase(),
123123
otp: code,
124124
});
@@ -163,11 +163,10 @@ export default function LoginForm({ redirectTo }: { redirectTo?: string }) {
163163
}
164164

165165
try {
166-
const { data, error } =
167-
await authClient.emailOtp.sendVerificationOtp({
168-
email: email.trim().toLowerCase(),
169-
type: "sign-in",
170-
});
166+
const { error } = await authClient.emailOtp.sendVerificationOtp({
167+
email: email.trim().toLowerCase(),
168+
type: "sign-in",
169+
});
171170

172171
if (error) {
173172
setError(error.message as any);

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,10 @@ export function LoginForm({ onLoginComplete }: LoginFormProps) {
8585
const requestCode = async function (email: string) {
8686
try {
8787
setLoading(true);
88-
const { data, error } =
89-
await authClient.emailOtp.sendVerificationOtp({
90-
email: email.trim().toLowerCase(),
91-
type: "sign-in",
92-
});
88+
const { error } = await authClient.emailOtp.sendVerificationOtp({
89+
email: email.trim().toLowerCase(),
90+
type: "sign-in",
91+
});
9392
if (error) {
9493
toast({
9594
title: TOAST_TITLE_ERROR,

0 commit comments

Comments
 (0)