Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
kryzasada committed Dec 6, 2024
1 parent 899d675 commit 07360da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library/Hooks/useInflation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const useYearlyInflation = () => {

useEffect(() => {
getYearlyInflation?.()
.then((val) => setYearlyInflation(val.toNumber() / 1_000_000_000))
.then((val) => setYearlyInflation(Number(val) / 1_000_000_000))
// eslint-disable-next-line no-console
.catch(console.error);
// `api` object can change in case of network change which should trigger refetch.
Expand Down

0 comments on commit 07360da

Please sign in to comment.