chore: updates

This commit is contained in:
zerosoul
2022-05-18 22:19:11 +08:00
parent 6272e14493
commit ee527e47e6
10 changed files with 108 additions and 66 deletions
+2 -2
View File
@@ -61,7 +61,7 @@ const navs = [
},
{
name: "social_login",
title: "Social Login",
title: "Login Methods",
component: <Logins />,
},
{
@@ -98,7 +98,7 @@ const useNavs = () => {
return store.contacts.byId[store.authData.uid];
});
const Navs = navs.filter((nav) => {
if (loginUser.is_admin) {
if (loginUser?.is_admin) {
return true;
} else {
return !nav.admin;