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 authored and erights committed Feb 9, 2024
1 parent e5cfa65 commit fcde617
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 fcde617

Please sign in to comment.