From 7607030d586246acdc037178cd3c99941d4fa0fe Mon Sep 17 00:00:00 2001 From: Uncle Fatso Date: Tue, 7 Apr 2026 22:34:40 +0300 Subject: [PATCH] avoid division by zero Signed-off-by: Uncle Fatso --- package.json | 2 +- src/hooks/staking/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c609d68..6da6401 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ghost-dao-interface", "private": true, - "version": "0.7.5", + "version": "0.7.6", "type": "module", "scripts": { "dev": "vite", diff --git a/src/hooks/staking/index.js b/src/hooks/staking/index.js index eca54da..2d25137 100644 --- a/src/hooks/staking/index.js +++ b/src/hooks/staking/index.js @@ -20,7 +20,7 @@ export const useCurrentIndex = (chainId) => { chainId: chainId, }); - const currentIndexRaw = index ? index : 0n; + const currentIndexRaw = index ? index : 1000000000n; const currentIndex = new DecimalBigNumber(currentIndexRaw, 9); return { currentIndex, refetch };