From 7cd52a5998139a7874f5dafb23b9f8f44eef8919 Mon Sep 17 00:00:00 2001 From: Fadli Date: Mon, 26 Sep 2022 14:54:41 +0700 Subject: [PATCH] -fix url for login and transaction si hemat --- src/helper/sihemat-authorization.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helper/sihemat-authorization.ts b/src/helper/sihemat-authorization.ts index b8192d5..cb9dee6 100644 --- a/src/helper/sihemat-authorization.ts +++ b/src/helper/sihemat-authorization.ts @@ -8,7 +8,7 @@ export const doAuthorizeHemat = async (user, pass, supplier) => { }; const res = await axios.post(`${supplier.url}/authenticate`, data); - return res; + return res.data; } catch (err) { throw err; }