Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
refactor: ensure payment retries does not go below 0
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Nov 9, 2019
1 parent a720892 commit 29bfcd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer/reducers/payment.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ const ACTION_HANDLERS = {
const { paymentsSending } = state
const item = find(paymentsSending, { paymentId })
if (item) {
item.remainingRetries -= 1
item.remainingRetries = Math.max(item.remainingRetries - 1, 0)
if (item.feeLimit) {
item.feeLimit = Math.ceil(item.feeLimit * config.invoices.feeIncrementExponent)
}
Expand Down

0 comments on commit 29bfcd3

Please sign in to comment.