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

This commit is contained in:
BugGeeker
2024-07-24 09:51:43 +08:00
committed by GitHub
parent 5d531b11e7
commit 6ce67b5ab8

View File

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