Explorar o código

fix: fix update payment setting

CaIon %!s(int64=2) %!d(string=hai) anos
pai
achega
90537c7f0f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);