mirror of
https://github.com/karl0ss/homepage.git
synced 2025-04-29 12:03:41 +01:00
update for 2.2.0
This commit is contained in:
parent
b36147be72
commit
da06db6307
@ -20,8 +20,8 @@ export default function Component({ service }) {
|
||||
}
|
||||
|
||||
if (response) {
|
||||
const platforms = response.filter(x => x.n_roms!==0).length
|
||||
const totalRoms = response.reduce((total, stat) => total + stat.n_roms, 0);
|
||||
const platforms = response.filter(x => x.rom_count!==0).length
|
||||
const totalRoms = response.reduce((total, stat) => total + stat.rom_count, 0);
|
||||
return (
|
||||
<Container service={service}>
|
||||
<Block label="romm.platforms" value={platforms} />
|
||||
|
Loading…
x
Reference in New Issue
Block a user