avoid division by zero

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2026-04-07 22:34:40 +03:00
parent 421f2cef27
commit 7607030d58
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"name": "ghost-dao-interface",
"private": true,
"version": "0.7.5",
"version": "0.7.6",
"type": "module",
"scripts": {
"dev": "vite",

View File

@ -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 };