From 06dffef6a17aaabea1a509e60428a4ffd47cf6cc Mon Sep 17 00:00:00 2001 From: Karl Hudgell Date: Fri, 19 Jan 2024 12:02:45 +0000 Subject: [PATCH] fix linting issue --- src/widgets/romm/component.jsx | 44 +++++++++++++++++----------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/widgets/romm/component.jsx b/src/widgets/romm/component.jsx index 098d8362..4fec8867 100644 --- a/src/widgets/romm/component.jsx +++ b/src/widgets/romm/component.jsx @@ -3,30 +3,30 @@ import Block from "components/services/widget/block"; import useWidgetAPI from "utils/proxy/use-widget-api"; export default function Component({ service }) { - const { widget } = service; +const { widget } = service; - const { data: response, error: responseError } = useWidgetAPI(widget, "statistics"); +const { data: response, error: responseError } = useWidgetAPI(widget, "statistics"); - if (responseError) { - return ( - - - - ); - } +if (responseError) { + return ( + + + + ); +} - if (responseError) { - return ; - } +if (responseError) { + return ; +} - if (response) { - const platforms = response.filter(x => x.rom_count !== 0).length - const totalRoms = response.reduce((total, stat) => total + stat.rom_count, 0); - return ( - - - - - ); - } +if (response) { + const platforms = response.filter(x => x.rom_count !== 0).length + const totalRoms = response.reduce((total, stat) => total + stat.rom_count, 0); + return ( + + + + + ); +} } \ No newline at end of file