From cc9cb65e4e6902a5427b71770e17d5787159edaf Mon Sep 17 00:00:00 2001 From: Mitja Belak Date: Wed, 6 Nov 2024 23:23:03 +0100 Subject: [PATCH] Fixes TS interface on Dashboard --- app/src/components/Dashboard.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/components/Dashboard.tsx b/app/src/components/Dashboard.tsx index a409a9f..d008930 100644 --- a/app/src/components/Dashboard.tsx +++ b/app/src/components/Dashboard.tsx @@ -6,7 +6,7 @@ interface MetricsData { totalRuns: number; activePlayers24h: number; totalBossesDefeated: number; - totalPrestigeLevelsGained: number; + totalPrestigeLevels: number; } const SUBGRAPH_URL = "https://api.studio.thegraph.com/query/75782/slay-the-moloch-base-mainnet/version/latest"; @@ -38,7 +38,7 @@ const Dashboard = () => { }); const data = await response.json(); - + setMetrics({ totalPlayers: parseInt(data.data.globalStat.totalPlayers), totalRuns: parseInt(data.data.globalStat.totalRuns), @@ -82,4 +82,4 @@ const Dashboard = () => { ); }; -export default Dashboard; \ No newline at end of file +export default Dashboard;