Skip to content

Commit d0d368f

Browse files
committed
Update useMinStakeAmount hook
Fetch minimum stake from chain only if the t staking contract is not null.
1 parent 457b1cf commit d0d368f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/useMinStakeAmount.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const useMinStakeAmount = () => {
1818
console.error("Could not fetch the min stake amount: ", error)
1919
}
2020
}
21-
if (minStakeAmount === "0") fetchMinStakeAmount()
21+
if (minStakeAmount === "0" && tStakingContract) fetchMinStakeAmount()
2222
}, [tStakingContract, dispatch, minStakeAmount])
2323

2424
return minStakeAmount

0 commit comments

Comments
 (0)