fix showing autowithdraw settings on send only wallets

This commit is contained in:
k00b 2024-10-21 11:46:43 -05:00
parent 1e68182cda
commit 4e61c19bb3
1 changed files with 4 additions and 4 deletions

View File

@ -68,9 +68,8 @@ export default function WalletSettings () {
}}
>
{wallet && <WalletFields wallet={wallet} />}
{wallet?.walletType
? <AutowithdrawSettings wallet={wallet} />
: (
{wallet?.clientOnly
? (
<CheckboxGroup name='enabled'>
<Checkbox
disabled={!wallet?.isConfigured}
@ -79,7 +78,8 @@ export default function WalletSettings () {
groupClassName='mb-0'
/>
</CheckboxGroup>
)}
)
: <AutowithdrawSettings wallet={wallet} />}
<WalletButtonBar
wallet={wallet} onDelete={async () => {
try {