From 4d7229bd4998079f45531c86ebb7113110ad110e Mon Sep 17 00:00:00 2001 From: Ivan Chub Date: Fri, 27 Sep 2024 13:00:27 -0700 Subject: [PATCH] remove comment --- .../screens/LoginScreens/OneClickLoginScreen.tsx | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/apps/passport-client/components/screens/LoginScreens/OneClickLoginScreen.tsx b/apps/passport-client/components/screens/LoginScreens/OneClickLoginScreen.tsx index 91582e7983..0deb4655a7 100644 --- a/apps/passport-client/components/screens/LoginScreens/OneClickLoginScreen.tsx +++ b/apps/passport-client/components/screens/LoginScreens/OneClickLoginScreen.tsx @@ -43,24 +43,17 @@ export function OneClickLoginScreen(): JSX.Element | null { return; } try { - // await dispatch({ - // type: "one-click-login", - // email, - // code, - // targetFolder - // }); - - const result = await requestGenericIssuanceTicketPreviews( + const previewRes = await requestGenericIssuanceTicketPreviews( appConfig.zupassServer, email, code ); setLoading(false); - if (result.success) { - setTicketPreviews(result.value.tickets); + if (previewRes.success) { + setTicketPreviews(previewRes.value.tickets); } else { - setError(result.error); + setError(previewRes.error); } } catch (err) { await dispatch({