fix: exclude non-signer accounts from submitTx

This commit is contained in:
Victor Oliva
2025-11-06 09:23:26 +01:00
parent 7f9b4ad9ae
commit 7af391f437

View File

@@ -107,6 +107,10 @@ const SelectAccount: FC<{
const [account, setAccount] = useSelectedAccount()
const groups = Object.entries(availableAccounts)
.map(
([group, accounts]) =>
[group, accounts.filter((acc) => acc.signer)] as const,
)
.filter(([, accounts]) => accounts.length > 0)
.map(([key, accounts]) => ({
name: groupLabels[key] ?? key,
@@ -128,6 +132,7 @@ const SelectAccount: FC<{
copyable={false}
/>
)}
disableClear
/>
)
}