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.
This commit is contained in:
2018-04-09 14:58:50 +02:00
parent b9fa0e2d60
commit ce8fef79dc
+1 -1
View File
@@ -26,7 +26,7 @@ export default Controller.extend({
return this.get('model.proposals') return this.get('model.proposals')
.map((proposal) => { .map((proposal) => {
let contributor = this.get('contributors') let contributor = this.get('contributors')
.findBy('id', proposal.get('recipientId')); .findBy('id', proposal.get('recipientId').toString());
proposal.set('contributor', contributor); proposal.set('contributor', contributor);