Skip to content

Commit

Permalink
🐛 fix(payment): Config and types
Browse files Browse the repository at this point in the history
  • Loading branch information
web-ppanel committed Dec 15, 2024
1 parent f57e40c commit b0c87fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions apps/admin/app/dashboard/payment/alipayf2f.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}}
/>
Expand All @@ -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,
});
}}
/>
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/app/dashboard/payment/epay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b0c87fb

Please sign in to comment.