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:
@ -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`)}
|
||||
|
Reference in New Issue
Block a user