Skip to content

Commit

Permalink
fix(frontend): reset circulating supply
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtekgrinder committed Sep 17, 2023
1 parent 65342d9 commit 2decc69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/hooks/useOrFetchTokenInfos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default function useOrFetchTokenInfos({

const { data } = useToken({
address: addressToUse,
staleTime: 0,
enabled:
tokenInfos?.decimals === undefined ||
tokenInfos?.totalSupply === undefined ||
Expand All @@ -43,7 +44,7 @@ export default function useOrFetchTokenInfos({
useEffect(() => {
if (
tokenInfos &&
(tokenInfos.totalSupply === undefined ||
(tokenInfos.totalSupply === undefined || tokenInfos.totalSupply !== data?.totalSupply.value ||
tokenInfos?.decimals === undefined ||
tokenInfos.symbol === undefined) &&
data
Expand Down

0 comments on commit 2decc69

Please sign in to comment.