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

@ -192,7 +192,7 @@ const ComponentInstance: React.FC<Props> = ({
const processUpdate = useCallback(() => {
if (domain) {
const accounts = getGlobalStorage.object('accounts')
if (accounts && accounts.filter(account => account.startsWith(`${domain}/`)).length) {
if (accounts?.filter(account => account.startsWith(`${domain}/`)).length) {
Alert.alert(
t('componentInstance:update.alert.title'),
t('componentInstance:update.alert.message'),