formatting
This commit is contained in:
@@ -4,7 +4,7 @@ import { prefixer } from "stylis";
|
||||
import stylisRTLPlugin from "stylis-plugin-rtl";
|
||||
import { CacheProvider } from "@emotion/react";
|
||||
|
||||
const isBrowser = typeof document !== 'undefined';
|
||||
const isBrowser = typeof document !== "undefined";
|
||||
|
||||
const createEmotionCache = () => {
|
||||
let insertionPoint;
|
||||
|
||||
@@ -19,7 +19,7 @@ const errorServer = (response, notification, toastContainer) => {
|
||||
const errorClient = (response, notification, toastContainer, logout) => {
|
||||
switch (response.status) {
|
||||
case 401:
|
||||
logout()
|
||||
logout();
|
||||
if (notification) errorUnauthorizedToast(toastContainer);
|
||||
break;
|
||||
case 422:
|
||||
|
||||
@@ -7,4 +7,3 @@ export const flattenArrayOfObjects = (array, key) => {
|
||||
return acc;
|
||||
}, []);
|
||||
};
|
||||
|
||||
|
||||
@@ -9,4 +9,4 @@ export const flattenObjectOfObjects = (obj, res = {}) => {
|
||||
}
|
||||
}
|
||||
return res;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user