Fix: properly handle wg-easy errors (#3849)

Also reverts #3768
This commit is contained in:
shamoon
2024-08-13 00:12:53 -07:00
committed by GitHub
parent 0dc2f2e18a
commit 9ede44b12d
2 changed files with 10 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ export default function Component({ service }) {
return <Container service={service} error={infoError} />;
}
if (!infoData || infoData.errorCode) {
if (!infoData) {
return (
<Container service={service}>
<Block label="wgeasy.connected" />