mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fix accounts array empty not init
This commit is contained in:
@ -184,7 +184,7 @@ const ComponentInstance: React.FC<Props> = ({
|
||||
)
|
||||
|
||||
if (!account) {
|
||||
setGlobalStorage('accounts', accounts?.concat([accountKey]))
|
||||
setGlobalStorage('accounts', (accounts || []).concat([accountKey]))
|
||||
}
|
||||
setAccount(accountKey)
|
||||
|
||||
|
Reference in New Issue
Block a user