Skip to content

Commit

Permalink
refactor: don't add zero-value payments to recoverySet
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Dec 19, 2023
1 parent fb64db7 commit 423bda0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ERTP/src/paymentLedger.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export const preparePaymentLedger = (
if (recoverySetsState === 'noRecoverySets') {
assert(optRecoverySet === undefined);
}
if (optRecoverySet !== undefined) {
if (optRecoverySet !== undefined && !AmountMath.isEmpty(amount)) {
optRecoverySet.add(payment);
paymentRecoverySets.init(payment, optRecoverySet);
}
Expand Down

0 comments on commit 423bda0

Please sign in to comment.