Commit 7df73fcd authored by Yuri Mikhin's avatar Yuri Mikhin Committed by Yuri Mikhin

Rename stats query key to homeStats query key.

parent e4c18d36
......@@ -3,6 +3,7 @@ export enum QueryKeys {
profile = 'profile',
txsValidate = 'txs-validated',
txsPending = 'txs-pending',
homeStats='homeStats',
stats='stats',
tx = 'tx',
txInternals = 'tx-internals',
......
......@@ -32,7 +32,7 @@ const LatestBlocks = () => {
const queryClient = useQueryClient();
const statsQueryResult = useQuery<unknown, unknown, HomeStats>(
[ QueryKeys.stats ],
[ QueryKeys.homeStats ],
() => fetch('/node-api/stats'),
);
......
......@@ -27,7 +27,7 @@ const Stats = () => {
const fetch = useFetch();
const { data, isLoading, isError } = useQuery<unknown, unknown, HomeStats>(
[ QueryKeys.stats ],
[ QueryKeys.homeStats ],
async() => await fetch(`/node-api/stats`),
);
......
......@@ -36,7 +36,7 @@ const ChainIndicators = () => {
const fetch = useFetch();
const statsQueryResult = useQuery<unknown, unknown, HomeStats>(
[ QueryKeys.stats ],
[ QueryKeys.homeStats ],
() => fetch('/node-api/stats'),
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment