diff --git a/packages/desktop/views/dashboard/account-management/AccountManagement.svelte b/packages/desktop/views/dashboard/account-management/AccountManagement.svelte index 02ad93a0bbf..d4371ed3274 100644 --- a/packages/desktop/views/dashboard/account-management/AccountManagement.svelte +++ b/packages/desktop/views/dashboard/account-management/AccountManagement.svelte @@ -4,6 +4,8 @@ import { AccountManagementDetails, AccountManagementList } from '@components' import { AccountOutput, OutputData } from '@iota/sdk/out/types' import { isAccountOutput, isImplicitAccountOutput } from '@core/wallet' + import { Text } from '@ui' + import { localize } from '@core/i18n' $: allAccountOutputs = $selectedWallet?.walletUnspentOutputs?.filter( @@ -11,7 +13,7 @@ ) || [] let selectedOutput = - $selectedWallet.walletUnspentOutputs.find( + $selectedWallet?.walletUnspentOutputs?.find( (output) => (output.output as AccountOutput)?.accountId === $selectedWallet.mainAccountId ) || allAccountOutputs?.[0] @@ -29,18 +31,24 @@ class="w-full h-full flex flex-nowrap p-8 relative flex-1 bg-gray-50 dark:bg-gray-900 space-x-4 justify-center" >
- {#key $selectedWallet?.id} - {#if features.accountManagement.accountList.enabled} - - {/if} - {#if features.accountManagement.accountDetails.enabled} - - {/if} - {/key} + {#if selectedOutput} + {#key $selectedWallet?.id} + {#if features.accountManagement.accountList.enabled} + + {/if} + {#if features.accountManagement.accountDetails.enabled} + + {/if} + {/key} + {:else} +
+ {localize('views.accountManagement.emptyAccounts')} +
+ {/if}
{/if} diff --git a/packages/shared/locales/en.json b/packages/shared/locales/en.json index 943f581a256..0131bf6d7cd 100644 --- a/packages/shared/locales/en.json +++ b/packages/shared/locales/en.json @@ -715,7 +715,8 @@ "unsetAsPrimary": "Unset as primary" } }, - "notification": "Activate one account to access the dashboard." + "notification": "Activate one account to access the dashboard.", + "emptyAccounts": "There are no accounts to show, activate one first." }, "delegation": { "title": "Delegation",