From a5044b30437645285ff2cb322279a46d62048ba8 Mon Sep 17 00:00:00 2001 From: Adam Goth Date: Mon, 11 Oct 2021 16:49:10 +0200 Subject: [PATCH] Fix bignumber sort --- packages/dai-plugin-governance/src/GovPollingService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dai-plugin-governance/src/GovPollingService.js b/packages/dai-plugin-governance/src/GovPollingService.js index eb5a2eb6f..9b043c528 100644 --- a/packages/dai-plugin-governance/src/GovPollingService.js +++ b/packages/dai-plugin-governance/src/GovPollingService.js @@ -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();