Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
Fix bignumber sort
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgoth committed Oct 11, 2021
1 parent 2f4189f commit a5044b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dai-plugin-governance/src/GovPollingService.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ export default class GovPollingService extends PrivateService {
}));

const sorted = summedSupport.sort((prev, next) =>
prev.mkrSupport > next.mkrSupport ? -1 : 1
prev.mkrSupport.gt(next.mkrSupport) ? -1 : 1
);

const winner = (sorted[0] ? sorted[0].optionId : 0).toString();
Expand Down

0 comments on commit a5044b3

Please sign in to comment.