From c812b06be4ad63d21ae09bfdd53527aa7d02c76e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CZiyedB=E2=80=9D?= Date: Tue, 2 Mar 2021 20:52:23 +0000 Subject: [PATCH] feedback --- src/pages/Login/Login.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/Login/Login.tsx b/src/pages/Login/Login.tsx index b1f8368..0136004 100644 --- a/src/pages/Login/Login.tsx +++ b/src/pages/Login/Login.tsx @@ -50,7 +50,7 @@ const Login = (props: RouteComponentProps<{}, {}, LoginProps>): JSX.Element => { })); }; - const login = async (data: LoginFormData): Promise => { + const login = (data: LoginFormData): void => { // Avoid the page to refresh from submitting the form // event.preventDefault(); // TODO: put like a loading icon on the login button @@ -59,7 +59,7 @@ const Login = (props: RouteComponentProps<{}, {}, LoginProps>): JSX.Element => { console.log('data', data); // Just to check - await paralinkApi + paralinkApi // For now this is going to be the placeholder .get('https://jsonplaceholder.typicode.com/todos') .then(() => {