We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ccd03d commit e2f3833Copy full SHA for e2f3833
src/schema/money/queries.ts
@@ -91,7 +91,7 @@ builder.queryFields((t) => ({
91
const key = `${p.platform}-${p.currencyId}`;
92
const isPaid = p.originalResponseBlob.payment_status === "paid" || p.originalResponseBlob.status === "approved";
93
94
- if (!consolidatedPayments[key] && isPaid) {
+ if (!consolidatedPayments[key] || !isPaid) {
95
consolidatedPayments[key] = {
96
id: key,
97
totalTransactionAmount: 0,
0 commit comments