Fix: wg-easy widget better handle api error (#3768)

pull/3790/head
BugGeeker 5 months ago committed by GitHub
parent 5d531b11e7
commit 6ce67b5ab8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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" />

Loading…
Cancel
Save