From 6ce67b5ab826e352bc8b38bdf03b769fedc0369f Mon Sep 17 00:00:00 2001 From: BugGeeker <35688923+BugGeeker@users.noreply.github.com> Date: Wed, 24 Jul 2024 09:51:43 +0800 Subject: [PATCH] Fix: wg-easy widget better handle api error (#3768) --- src/widgets/wgeasy/component.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/wgeasy/component.jsx b/src/widgets/wgeasy/component.jsx index 624002c4f..1b3e0196a 100644 --- a/src/widgets/wgeasy/component.jsx +++ b/src/widgets/wgeasy/component.jsx @@ -15,7 +15,7 @@ export default function Component({ service }) { return ; } - if (!infoData) { + if (!infoData || infoData.errorCode) { return (