From 954a62e0bc33944c647e9b3dca61dce1d27b472f Mon Sep 17 00:00:00 2001 From: dewanakl Date: Sun, 25 Aug 2024 23:18:51 +0700 Subject: [PATCH] fix: missing return --- js/session.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/session.js b/js/session.js index 6ad40b8f..363b6d38 100644 --- a/js/session.js +++ b/js/session.js @@ -28,6 +28,8 @@ export const session = (() => { if (res.code === 200) { session.set('token', res.data.token); } + + return res; }) .then((res) => res.code === 200, () => false);