Skip to content

Commit

Permalink
fix: fix readOnly state not being read as reference (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e authored Jul 31, 2024
1 parent 3ad9839 commit 7e6b7d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/ui/src/components/SpaceTreasury.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
});
Expand Down Expand Up @@ -313,9 +315,7 @@ watchEffect(() => setTitle(`Treasury - ${props.space.name}`));
</div>
<UiTooltip
v-if="
asset.contractAddress === ETH_CONTRACT &&
!isReadOnly &&
ETHEREUM_NETWORKS.includes(treasury.networkId)
asset.contractAddress === ETH_CONTRACT && hasStakeableAssets
"
title="Stake with Lido"
>
Expand Down

0 comments on commit 7e6b7d9

Please sign in to comment.