mirror of
https://github.com/karl0ss/homepage.git
synced 2025-04-29 12:03:41 +01:00
Fix: wg-easy widget better handle api error (#3768)
This commit is contained in:
parent
5d531b11e7
commit
6ce67b5ab8
@ -15,7 +15,7 @@ export default function Component({ service }) {
|
|||||||
return <Container service={service} error={infoError} />;
|
return <Container service={service} error={infoError} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!infoData) {
|
if (!infoData || infoData.errorCode) {
|
||||||
return (
|
return (
|
||||||
<Container service={service}>
|
<Container service={service}>
|
||||||
<Block label="wgeasy.connected" />
|
<Block label="wgeasy.connected" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user