1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Fix admin options not showing up

This commit is contained in:
xmflsct
2022-12-29 23:13:22 +01:00
parent 43a98be2d9
commit a77e495b6b
5 changed files with 48 additions and 46 deletions

View File

@ -66,7 +66,7 @@ const TabMePush: React.FC = () => {
const alerts = () =>
push?.alerts
? PUSH_DEFAULT.map(alert => (
? PUSH_DEFAULT().map(alert => (
<MenuRow
key={alert}
title={t(`me.push.${alert}.heading`)}
@ -94,7 +94,7 @@ const TabMePush: React.FC = () => {
const profileQuery = useProfileQuery()
const adminAlerts = () =>
profileQuery.data?.role?.permissions
? PUSH_ADMIN.map(({ type }) => (
? PUSH_ADMIN().map(({ type }) => (
<MenuRow
key={type}
title={t(`me.push.${type}.heading`)}