{serviceInfo?.rescanning === true && (
@@ -185,13 +185,13 @@ export default function Wallets({ currentWallet, startWallet, stopWallet }: Wall
)}
{alert &&
}
- {navigation.state !== 'idle' ? (
+ {navigation.state === 'loading' ? (
{t('wallets.text_loading')}
) : (
- sortWallets(existingWallets?.wallets ?? [], serviceInfo?.walletFileName).map(
+ sortWallets(getWalletAllResponse?.existingWallets ?? [], serviceInfo?.walletFileName).map(
(walletFileName: Api.WalletFileName, index: number) => {
const noneActive = !serviceInfo?.walletFileName
const isActive = serviceInfo?.walletFileName === walletFileName
@@ -222,16 +222,17 @@ export default function Wallets({ currentWallet, startWallet, stopWallet }: Wall
0,
- disabled: !existingWallets || isUnlocking,
+ 'btn-lg': getWalletAllResponse?.existingWallets?.length === 0,
+ 'btn-dark': getWalletAllResponse?.existingWallets?.length === 0,
+ 'btn-outline-dark':
+ !getWalletAllResponse?.existingWallets || getWalletAllResponse?.existingWallets?.length > 0,
+ disabled: !getWalletAllResponse || isUnlocking,
})}
data-testid="new-wallet-btn"
>
@@ -244,8 +245,8 @@ export default function Wallets({ currentWallet, startWallet, stopWallet }: Wall