From 7e6b7d9925897ba665494e30f6fbd13c70ad837b Mon Sep 17 00:00:00 2001 From: Wan <495709+wa0x6e@users.noreply.github.com> Date: Thu, 1 Aug 2024 01:30:04 +0900 Subject: [PATCH] fix: fix readOnly state not being read as reference (#565) --- apps/ui/src/components/SpaceTreasury.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/ui/src/components/SpaceTreasury.vue b/apps/ui/src/components/SpaceTreasury.vue index 6f1911134..3f5d8df58 100644 --- a/apps/ui/src/components/SpaceTreasury.vue +++ b/apps/ui/src/components/SpaceTreasury.vue @@ -123,8 +123,10 @@ const executionStrategy = computed(() => { const hasStakeableAssets = computed(() => { return ( - !isReadOnly && - assets.value.some(asset => asset.contractAddress === ETH_CONTRACT) + treasury.value && + !isReadOnly.value && + assets.value.some(asset => asset.contractAddress === ETH_CONTRACT) && + ETHEREUM_NETWORKS.includes(treasury.value.networkId) ); }); @@ -313,9 +315,7 @@ watchEffect(() => setTitle(`Treasury - ${props.space.name}`));