Skip to content

Commit 6d21377

Browse files
authored
fix: Show range when not connected (#4374)
1 parent 9806a33 commit 6d21377

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/tooltips/APRTooltip/components/StakingBreakdown.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { Pool } from '@/services/pool/types';
77
import { AprBreakdown } from '@balancer-labs/sdk';
88
import { useTokens } from '@/providers/tokens.provider';
99
import { hasBalEmissions } from '@/composables/useAPR';
10+
import useWeb3 from '@/services/web3/useWeb3';
1011
1112
/**
1213
* TYPES
@@ -26,6 +27,7 @@ const props = defineProps<Props>();
2627
*/
2728
const { fNum } = useNumbers();
2829
const { getToken } = useTokens();
30+
const { isWalletReady } = useWeb3();
2931
3032
/**
3133
* COMPUTED
@@ -34,7 +36,9 @@ const { getToken } = useTokens();
3436
const apr = computed(() => props.pool?.apr || props.poolApr);
3537
3638
const boost = computed((): string => props.pool?.boost || '');
37-
const hasBoost = computed((): boolean => !!boost.value);
39+
const hasBoost = computed(
40+
(): boolean => !!boost.value && boost.value !== '1' && isWalletReady.value
41+
);
3842
const stakingAPR = computed(
3943
(): AprBreakdown['stakingApr'] | undefined => apr.value?.stakingApr
4044
);

0 commit comments

Comments
 (0)