From 5331566366a936c7489b0c8d2c41646844cd651e Mon Sep 17 00:00:00 2001 From: Guillaume Dorce Date: Thu, 6 Oct 2022 15:13:19 +0200 Subject: [PATCH] fix login error --- client/src/routes/login.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/routes/login.tsx b/client/src/routes/login.tsx index dc96623..3b6476f 100644 --- a/client/src/routes/login.tsx +++ b/client/src/routes/login.tsx @@ -26,7 +26,7 @@ const Login = () => { if (data.error) { throw data.error; } - return response.json(); + return data; }, { onSuccess: (data: Token) => {