Remove unnecessary code from MySpeed widget
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
parent
4f32c38438
commit
0c26eb5e2d
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user