close accounts list after creating first account
This commit is contained in:
parent
ecbe76a2f4
commit
01796922c8
|
@ -63,6 +63,9 @@ const AccountsModal: FunctionComponent<AccountsModalProps> = ({
|
|||
if (newAccPublicKey) {
|
||||
setNewAccPublicKey(newAccPublicKey)
|
||||
}
|
||||
if (mangoAccounts.length <= 1) {
|
||||
onClose()
|
||||
}
|
||||
setShowNewAccountForm(false)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue