chore: add bad request error

This commit is contained in:
Tristan Yang
2022-09-05 22:45:28 +08:00
parent 1e8dacfcac
commit 4b6c9b1b11
3 changed files with 9 additions and 4 deletions
+3
View File
@@ -80,6 +80,9 @@ const baseQueryWithTokenCheck = async (args, api, extraOptions) => {
toast.error(`${api.endpoint}: Failed to fetch`);
}
break;
case 400:
toast.error("Bad Request");
break;
case 401:
{
if (api.endpoint !== "login") {