fix: fix update payment setting

This commit is contained in:
CaIon 2024-04-24 00:01:54 +08:00
parent 783e8fd74a
commit 77e7d11151

View File

@ -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);