Skip to content

Commit

Permalink
Unset pendingAmountRemaining from Waiting, Committed and ToApprove do…
Browse files Browse the repository at this point in the history
…nations

related to #432
  • Loading branch information
mohammadranjbarz committed May 10, 2021
1 parent 80e353d commit 61420fc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/blockchain/pledges.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,14 @@ const pledges = (app, liquidPledging) => {
mined: true,
token,
};

if (
mutation.status === DonationStatus.WAITING ||
mutation.status === DonationStatus.COMMITTED ||
mutation.status === DonationStatus.TO_APPROVE
) {
// should unset pendingAmountRemaining when delegation donation is mined
mutation.pendingAmountRemaining = undefined;
}
// Propagate comment and actionTakerAddress for donations created by direct donating
if (
donations.length === 1 &&
Expand Down

0 comments on commit 61420fc

Please sign in to comment.