Minor updates to intellipay processing.

This commit is contained in:
Patrick Fic
2023-08-09 20:14:44 -07:00
parent b8942c320e
commit 2e763f1dd5
6 changed files with 19 additions and 37 deletions

View File

@@ -136,10 +136,10 @@ const CardPaymentModalComponent = ({
},
update(cache, { data }) {
cache.modify({
id: cache.identify({ id: jobid, __typename: "jobs" }),
id: cache.identify({ id: values.jobid, __typename: "jobs" }),
fields: {
payments(payments) {
return [...data.insert_payments.returning, ...payments];
payments(cachedPayments) {
return [...data.insert_payments.returning, ...cachedPayments];
},
},
});

View File

@@ -209,6 +209,7 @@ export function JobPayments({
>
{t("menus.header.enterpayment")}
</Button>
<Button
onClick={() =>
setCardPaymentContext({