🐛 fix(payment): Config and types

This commit is contained in:
web@ppanel 2024-12-15 23:22:25 +07:00
parent f57e40cd3d
commit b0c87fbf3d
2 changed files with 5 additions and 9 deletions

View File

@ -207,10 +207,8 @@ export default function AlipayF2F() {
defaultValue={data?.config.private_key}
onBlur={(e) => {
updateConfig('config', {
config: {
...data?.config,
private_key: e.target.value,
},
...data?.config,
private_key: e.target.value,
});
}}
/>
@ -227,10 +225,8 @@ export default function AlipayF2F() {
value={data?.config.public_key}
onBlur={(e) => {
updateConfig('config', {
config: {
...data?.config,
public_key: e.target.value,
},
...data?.config,
public_key: e.target.value,
});
}}
/>

View File

@ -36,7 +36,7 @@ export default function Epay() {
await updateEpayPaymentConfig({
...data,
[key]: value,
} as API.PaymentConfig);
} as API.UpdateEpayRequest);
toast.success(t('saveSuccess'));
refetch();
} catch (error) {