mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-03 05:53:40 +01:00
Merge branch 'add-romm' into LocalMain
This commit is contained in:
commit
5232c03b46
@ -20,8 +20,8 @@ export default function Component({ service }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (response) {
|
if (response) {
|
||||||
const platforms = response.filter(x => x.n_roms!==0).length
|
const platforms = response.filter(x => x.rom_count!==0).length
|
||||||
const totalRoms = response.reduce((total, stat) => total + stat.n_roms, 0);
|
const totalRoms = response.reduce((total, stat) => total + stat.rom_count, 0);
|
||||||
return (
|
return (
|
||||||
<Container service={service}>
|
<Container service={service}>
|
||||||
<Block label="romm.platforms" value={platforms} />
|
<Block label="romm.platforms" value={platforms} />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user