Remove unnecessary code from MySpeed widget

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Mathias Wagner 2024-06-23 20:29:35 +02:00 committed by GitHub
parent 4f32c38438
commit 0c26eb5e2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,18 +31,6 @@ export default function Component({ service }) {
);
}
if (data.message) {
return <Container service={service} error={data} />;
}
if (Array.isArray(data) && data.length > 0 && data[0].error) {
try {
return <Container service={service} error={JSON.parse(data[0].error)} />;
} catch (e) {
return <Container service={service} error={data[0].error} />;
}
}
return (
<Container service={service}>
<Block