close accounts list after creating first account

This commit is contained in:
Tyler Shipe 2021-08-25 15:05:18 -04:00
parent ecbe76a2f4
commit 01796922c8
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@ const AccountsModal: FunctionComponent<AccountsModalProps> = ({
if (newAccPublicKey) {
setNewAccPublicKey(newAccPublicKey)
}
if (mangoAccounts.length <= 1) {
onClose()
}
setShowNewAccountForm(false)
}