]> zoso.dev Git - nemo-wallet.git/commitdiff
Fix account being selectable when launching wallet create/import form.
authorChris Duncan <chris@zoso.dev>
Sat, 2 Nov 2024 06:13:47 +0000 (23:13 -0700)
committerChris Duncan <chris@zoso.dev>
Sat, 2 Nov 2024 06:13:47 +0000 (23:13 -0700)
nemo-wallet.html

index c1ecc4417f029d3ca86ca7c728162e06a8769c28..562ff9c5bf8bc9b3f7fb2ad072daddcb5a0ddc8d 100644 (file)
                async function selectAccount () {
                        const accountSelect = document.getElementById('account')
                        const walletId = document.getElementById('wallet')?.value
-                       if (walletId == null || walletId === '') {
+                       if (walletId == null || walletId === '' || walletId === '_new' || walletId === '_import') {
                                accountSelect.value = ''
                                accountSelect.setAttribute('disabled', '')
                                return