From 2bfbbd53f8b1ca35e7606600d9dcb3869f960a94 Mon Sep 17 00:00:00 2001 From: Pham Tu Date: Thu, 18 Jan 2024 12:01:49 +0700 Subject: [PATCH] check pool --- src/stores/useParamsStore.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stores/useParamsStore.ts b/src/stores/useParamsStore.ts index bc073bd5..a479f194 100644 --- a/src/stores/useParamsStore.ts +++ b/src/stores/useParamsStore.ts @@ -123,6 +123,7 @@ export const useParamStore = defineStore('paramstore', { Promise.all([this.getStakingPool(), this.getBankTotal(bond_denom)]).then( (resArr) => { const pool = resArr[0]?.pool; + if (!pool) return; const amount = resArr[1]?.amount; const assets = this.blockchain.current?.assets; const bondedAndSupply = this.chain.items.findIndex(