🐛 fix(payment): Config and types
This commit is contained in:
parent
f57e40cd3d
commit
b0c87fbf3d
@ -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,
|
||||
});
|
||||
}}
|
||||
/>
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user