File tree Expand file tree Collapse file tree
apps/web/components/public/payments Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments