Skip to content

Commit 9e62895

Browse files
committed
refactor: use fetchGrowThePie for txCount
on what-is-ethereum page
1 parent 2069fb8 commit 9e62895

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/what-is-ethereum.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import {
4949
getRequiredNamespacesForPage,
5050
} from "@/lib/utils/translations"
5151

52-
import { fetchTxCount } from "@/lib/api/fetchTxCount"
52+
import { fetchGrowThePie } from "@/lib/api/fetchGrowThePie"
5353
import dogeComputerImg from "@/public/images/doge-computer.png"
5454
import ethImg from "@/public/images/eth.png"
5555
import diffEthAndBtc from "@/public/images/eth.png"
@@ -157,7 +157,7 @@ const Image400 = ({ src }: Pick<ImageProps, "src">) => (
157157
<TwImage src={src} alt="" width={400} />
158158
)
159159

160-
const cachedFetchTxCount = runOnlyOnce(fetchTxCount)
160+
const cachedFetchTxCount = runOnlyOnce(fetchGrowThePie)
161161

162162
type Props = BasePageProps & {
163163
data: MetricReturnData
@@ -181,7 +181,7 @@ export const getStaticProps = (async ({ locale }) => {
181181
...(await serverSideTranslations(locale!, requiredNamespaces)),
182182
contentNotTranslated,
183183
lastDeployLocaleTimestamp,
184-
data,
184+
data: data.txCount,
185185
},
186186
}
187187
}) satisfies GetStaticProps<Props>

0 commit comments

Comments
 (0)