Skip to content

Commit

Permalink
Merge pull request #166 from PotLock/payout-update
Browse files Browse the repository at this point in the history
sort payout before setting it
  • Loading branch information
M-Rb3 committed Jul 22, 2024
2 parents d82c686 + 80813dc commit f10638e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Pot/components/PayoutsModal/PayoutsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const PayoutsModal = ({
project_id,
amount,
}));

payoutsArr.sort((a, b) => Big(b.amount).minus(a.amount).toNumber());
let yoctos = sumAmount(payoutsArr);

const remainder = Big(originalTotalAmountYoctos).minus(yoctos);
Expand Down

0 comments on commit f10638e

Please sign in to comment.