From 2bf590886cd3f600132cc10d2c3f830a1d864241 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Thu, 1 Oct 2020 12:50:18 +0200 Subject: [PATCH] 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. --- app/services/kredits.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/kredits.js b/app/services/kredits.js index 00ceda8..d577e73 100644 --- a/app/services/kredits.js +++ b/app/services/kredits.js @@ -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; });