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