diff --git a/pages/index.vue b/pages/index.vue index 5803195..28c9f80 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -353,8 +353,8 @@ const bucketsCount = computed(() => { const unfetchedBucketsCount = computed(() => { if (!noteBucketsInfo.value) return 0; return ( - firstNoteBucketIndexFetched.value - - noteBucketsInfo.value.first.unwrap().index + firstNoteBucketIndexFetched.value ? firstNoteBucketIndexFetched.value - + noteBucketsInfo.value.first.unwrap().index : noteBucketsInfo.value.last.unwrap().index - noteBucketsInfo.value.first.unwrap().index +1 ); }); @@ -575,7 +575,7 @@ const subscribeWhatsReady = async () => { //console.log("skipping api init. It seems the ShieldingTarget api is already subscribed to balance changes"); return; } - + firstNoteBucketIndexFetched.value = null; const wsProvider = new WsProvider(chainConfigs[shieldingTarget.value].api); console.log( "trying to init api at " + chainConfigs[shieldingTarget.value].api,