From 77e7d111512194a262e9c6e19a1bed8ad057a96d 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 5906896..6abc6f1 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);