From 9a78988064d6dd43c6a0eb4deaf7bd92ea188cc4 Mon Sep 17 00:00:00 2001 From: Tomas Van Morlegan Date: Mon, 6 Sep 2021 20:49:58 -0300 Subject: [PATCH] return error from axios.interceptors https://axios-http.com/docs/interceptors --- src/api/api.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/api.js b/src/api/api.js index a8446ec18..322ca23b6 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -60,6 +60,7 @@ class API { history.push('/login-signup/'); window.location.reload(); } + return Promise.reject(error); } ); }