mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-05 21:47:48 +01:00
Fix: wg-easy widget better handle api error (#3768)
This commit is contained in:
@@ -15,7 +15,7 @@ export default function Component({ service }) {
|
||||
return <Container service={service} error={infoError} />;
|
||||
}
|
||||
|
||||
if (!infoData) {
|
||||
if (!infoData || infoData.errorCode) {
|
||||
return (
|
||||
<Container service={service}>
|
||||
<Block label="wgeasy.connected" />
|
||||
|
||||
Reference in New Issue
Block a user