diff --git a/src/widgets/romm/component.jsx b/src/widgets/romm/component.jsx index 44b114b03..eebf7a156 100644 --- a/src/widgets/romm/component.jsx +++ b/src/widgets/romm/component.jsx @@ -23,13 +23,22 @@ export default function Component({ service }) { } if (response) { - const platforms = response.filter((x) => x.rom_count !== 0).length; - const totalRoms = response.reduce((total, stat) => total + stat.rom_count, 0); - return ( - - - - - ); - } + const platforms = response.PLATFORMS; + const totalRoms = response.ROMS; + const totalSaves = response.SAVES; + const totalStates = response.STATES; + const totalScreenshots = response.SCREENSHOTS; + const totalFilesizeGB = (response.FILESIZE / (1024 ** 3)).toFixed(2); + + return ( + + + + + + + + + ); + } }