From 07360da4c9fa78fd5afec3a9b28a0666e7dd2112 Mon Sep 17 00:00:00 2001 From: kryzasada Date: Fri, 6 Dec 2024 13:06:12 +0100 Subject: [PATCH] Fix build error --- src/library/Hooks/useInflation/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library/Hooks/useInflation/index.tsx b/src/library/Hooks/useInflation/index.tsx index 826c9f9c9e..194fca2cbf 100644 --- a/src/library/Hooks/useInflation/index.tsx +++ b/src/library/Hooks/useInflation/index.tsx @@ -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.