Skip to content

Commit e2f3833

Browse files
committed
fixed payment
1 parent 2ccd03d commit e2f3833

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/schema/money/queries.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ builder.queryFields((t) => ({
9191
const key = `${p.platform}-${p.currencyId}`;
9292
const isPaid = p.originalResponseBlob.payment_status === "paid" || p.originalResponseBlob.status === "approved";
9393

94-
if (!consolidatedPayments[key] && isPaid) {
94+
if (!consolidatedPayments[key] || !isPaid) {
9595
consolidatedPayments[key] = {
9696
id: key,
9797
totalTransactionAmount: 0,

0 commit comments

Comments
 (0)