fix: admin/accounts: remove button not disabled when no account is selected

Massimo Melina committed Sep 3, 2022 at 23:14 UTC 5ea53b128f844d02ea60152850c69f06c7295b82
1 file changed +1 -1
admin/src/AccountsPage.ts
+1 -1
@@ -55,7 +55,7 @@ export default function AccountsPage() {
55 ]
56 }, 'Add'),
57 h(Button, {
58 - disabled: !selectionMode,
58 + disabled: !selectionMode || !sel.length,
59 startIcon: h(Delete),
60 async onClick(){
61 if (!selectionMode) return