feat: add number format
This commit is contained in:
@@ -43,10 +43,11 @@ export const Membership = observer(() => {
|
||||
const init = async () => {
|
||||
try {
|
||||
setIsLoading(true);
|
||||
const isAdmin = store.authentication.userData.role === "Admin";
|
||||
|
||||
await getData();
|
||||
store.role.getData();
|
||||
if (store.authentication.userData.role === "Admin")
|
||||
await store.supplier.getData();
|
||||
await store.role.getData(isAdmin);
|
||||
if (isAdmin) await store.supplier.getData();
|
||||
setIsLoading(false);
|
||||
} catch (e) {
|
||||
setIsLoading(false);
|
||||
|
Reference in New Issue
Block a user