From 95928dfcc673b7d5a8f2fc2a1d2e9490a2ae0d3c Mon Sep 17 00:00:00 2001 From: "Taegeon Go (Alan)" Date: Fri, 12 Jul 2024 22:25:02 +0900 Subject: [PATCH] only enable immediate for h160 wallet --- src/hooks/usePrice.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hooks/usePrice.ts b/src/hooks/usePrice.ts index 0c41d0bc6..d6318e6af 100644 --- a/src/hooks/usePrice.ts +++ b/src/hooks/usePrice.ts @@ -10,6 +10,7 @@ export function usePrice() { const chainInfo = store.getters['general/chainInfo']; return chainInfo ? chainInfo.tokenSymbol : ''; }); + const isH160 = computed(() => store.getters['general/isH160Formatted']); const { isMainnet, isAstarZkEvm } = useNetworkInfo(); const { currentAccount } = useAccount(); @@ -31,7 +32,7 @@ export function usePrice() { console.error(error.message); } }, - { immediate: true } + { immediate: isH160.value } ); return {