Просмотр исходного кода

fix: fix update payment setting

CaIon 1 год назад
Родитель
Сommit
77e7d11151
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      web/src/components/SystemSetting.js

+ 1 - 1
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);