From ce8fef79dc5fd8f4552101b8ee73c433cce562e1 Mon Sep 17 00:00:00 2001 From: bumi Date: Mon, 9 Apr 2018 14:58:50 +0200 Subject: [PATCH] Search proposal contributor by stringified ID Kredits returns default web3/ethers.js values which are BigNumbers. Internally we use Strings. We need to do this somewhere centrally though. --- app/controllers/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/index.js b/app/controllers/index.js index 387e259..6d0195c 100644 --- a/app/controllers/index.js +++ b/app/controllers/index.js @@ -26,7 +26,7 @@ export default Controller.extend({ return this.get('model.proposals') .map((proposal) => { let contributor = this.get('contributors') - .findBy('id', proposal.get('recipientId')); + .findBy('id', proposal.get('recipientId').toString()); proposal.set('contributor', contributor);