diff --git a/src/widgets/romm/component.jsx b/src/widgets/romm/component.jsx index ea9549f7..fa411557 100644 --- a/src/widgets/romm/component.jsx +++ b/src/widgets/romm/component.jsx @@ -10,11 +10,20 @@ const MAX_ALLOWED_FIELDS = 4; export default function Component({ service }) { const { widget } = service; const { t } = useTranslation(); - const { data: response, error: responseError } = useWidgetAPI(widget, "statistics"); - if (responseError) { - return ; - } + const { data: response, error: responseError } = useWidgetAPI(widget, "statistics"); + + if (responseError) { + return ( + + + + ); + } + + if (responseError) { + return ; + } if (!widget.fields?.length > 0) { widget.fields = ROMM_DEFAULT_FIELDS;