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:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user