From cab9d6c0a96d8aa26c3d22914b8175e9bea089b3 Mon Sep 17 00:00:00 2001 From: GabrielTrettel Date: Mon, 25 Oct 2021 18:58:23 -0300 Subject: [PATCH] Add missing import in auth.js --- src/app/api/auth.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/api/auth.js b/src/app/api/auth.js index 32d2f09..2e1ca13 100644 --- a/src/app/api/auth.js +++ b/src/app/api/auth.js @@ -1,3 +1,4 @@ +import { create } from "apisauce"; import authClient from "../auth/authClient"; function login(name, password) { @@ -34,9 +35,9 @@ function signup({ roles: ["ROLE_CLIENT"], }; - Object.entries(body).forEach(([key, value]) => { - value == "" && delete body[key]; - }); + // Object.entries(body).forEach(([key, value]) => { + // value == "" && delete body[key]; + // }); return authClient.post(`/signup`, body); }