From 39d89287726c75e9e1338f925a79bd1ae76a6b24 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Thu, 4 Jul 2024 21:38:54 +0200 Subject: [PATCH] Disable checkbox if not configured yet --- components/autowithdraw-shared.js | 3 ++- pages/settings/wallets/[wallet].js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/components/autowithdraw-shared.js b/components/autowithdraw-shared.js index daa334df..d5c844fd 100644 --- a/components/autowithdraw-shared.js +++ b/components/autowithdraw-shared.js @@ -16,7 +16,7 @@ export function autowithdrawInitial ({ me, priority = false }) { } } -export function AutowithdrawSettings ({ priority }) { +export function AutowithdrawSettings ({ wallet }) { const me = useMe() const threshold = autoWithdrawThreshold({ me }) @@ -29,6 +29,7 @@ export function AutowithdrawSettings ({ priority }) { return ( <> {wallet.server - ? + ? : (