Fix newly created contributions not showing

It's trying to use a non-existing block number to calculate
confirmedAtBlock, which then fails the filter to be shown.
This commit is contained in:
basti committed 2020-10-01 12:50:18 +02:00
1 parent c7b6f9e3e7
commit 2bf590886c
1 file changed
+1 -1
+1 -1
View File
@@ -313,7 +313,7 @@ export default Service.extend({
attributes.contributor = this.contributors.findBy('id', attributes.contributorId);
const contribution = Contribution.create(attributes);
contribution.set('pendingTx', data);
contribution.set('confirmedAtBlock', data.blockNumber + 40320);
contribution.set('confirmedAtBlock', this.currentBlock + 40320);
this.contributions.pushObject(contribution);
return contribution;
});