From 90537c7f0f26055822df287e312e93e9fb3814d2 Mon Sep 17 00:00:00 2001 From: CaIon <1808837298@qq.com> Date: Wed, 24 Apr 2024 00:01:54 +0800 Subject: [PATCH] fix: fix update payment setting --- web/src/components/SystemSetting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/SystemSetting.js b/web/src/components/SystemSetting.js index 5906896c..6abc6f1e 100644 --- a/web/src/components/SystemSetting.js +++ b/web/src/components/SystemSetting.js @@ -189,7 +189,7 @@ const SystemSetting = () => { if (inputs.EpayId !== '') { await updateOption('EpayId', inputs.EpayId); } - if (inputs.EpayKey !== '') { + if (inputs.EpayKey !== undefined && inputs.EpayKey !== '') { await updateOption('EpayKey', inputs.EpayKey); } await updateOption('Price', '' + inputs.Price);