This commit is contained in:
shamoon 2024-01-19 23:34:52 -08:00
parent ec920a7bb7
commit b4b11e85c4
2 changed files with 22 additions and 22 deletions

View File

@ -20,7 +20,7 @@ if (responseError) {
} }
if (response) { if (response) {
const platforms = response.filter(x => x.rom_count !== 0).length const platforms = response.filter((x) => x.rom_count !== 0).length;
const totalRoms = response.reduce((total, stat) => total + stat.rom_count, 0); const totalRoms = response.reduce((total, stat) => total + stat.rom_count, 0);
return ( return (
<Container service={service}> <Container service={service}>

View File

@ -7,7 +7,7 @@ proxyHandler: genericProxyHandler,
mappings: { mappings: {
statistics: { statistics: {
endpoint: "platforms", endpoint: "platforms",
} },
}, },
}; };