Compare commits
No commits in common. "main" and "metrics" have entirely different histories.
@ -6,7 +6,7 @@ interface MetricsData {
|
|||||||
totalRuns: number;
|
totalRuns: number;
|
||||||
activePlayers24h: number;
|
activePlayers24h: number;
|
||||||
totalBossesDefeated: number;
|
totalBossesDefeated: number;
|
||||||
totalPrestigeLevels: number;
|
totalPrestigeLevelsGained: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
const SUBGRAPH_URL = "https://api.studio.thegraph.com/query/75782/slay-the-moloch-base-mainnet/version/latest";
|
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();
|
const data = await response.json();
|
||||||
|
|
||||||
setMetrics({
|
setMetrics({
|
||||||
totalPlayers: parseInt(data.data.globalStat.totalPlayers),
|
totalPlayers: parseInt(data.data.globalStat.totalPlayers),
|
||||||
totalRuns: parseInt(data.data.globalStat.totalRuns),
|
totalRuns: parseInt(data.data.globalStat.totalRuns),
|
||||||
@ -82,4 +82,4 @@ const Dashboard = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Dashboard;
|
export default Dashboard;
|
||||||
Loading…
Reference in New Issue
Block a user