From 71d084b03729635e4067e80c4d40cd69b6fe01f7 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Thu, 5 Dec 2024 20:54:17 +0100 Subject: [PATCH] fix: reset firstNoteBucketIndexFetched upon account change --- pages/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/index.vue b/pages/index.vue index 9cda5e5..51448a8 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,