Explorar el Código

fix: fix update payment setting

CaIon hace 1 año
padre
commit
77e7d11151
Se han modificado 1 ficheros con 1 adiciones y 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);