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

Catch potentially json parsing error

This commit is contained in:
xmflsct
2023-02-01 00:07:38 +01:00
parent 5d3f773a2a
commit e60535cd1c
2 changed files with 15 additions and 7 deletions

View File

@@ -186,7 +186,7 @@ const ComponentInstance: React.FC<Props> = ({
if (!account) {
setGlobalStorage('accounts', (accounts || []).concat([accountKey]))
}
setAccount(accountKey)
await setAccount(accountKey)
goBack && navigation.goBack()
}