refactor: add user info to authData

This commit is contained in:
Tristan Yang
2022-06-29 10:56:50 +08:00
parent c5694a07b0
commit aff66ad5c8
37 changed files with 94 additions and 104 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ const navs = [
const useNavs = () => {
const loginUser = useAppSelector((store) => {
return store.contacts.byId[store.authData.uid];
return store.authData.user;
});
return navs.filter((nav) => {
if (loginUser?.is_admin) {