Formatting

This commit is contained in:
2019-05-29 16:12:48 +02:00
parent 1ea5305e6e
commit 58bd729acb
+2 -2
View File
@@ -47,7 +47,7 @@ export default Service.extend({
}); });
}), }),
kreditsByContributor: computed('contributionsUnconfirmed.@each.vetoed', 'contributors', function() { kreditsByContributor: computed('contributionsUnconfirmed.@each.vetoed', 'contributors.[]', function() {
const contributionsUnconfirmed = this.contributionsUnconfirmed.filterBy('vetoed', false); const contributionsUnconfirmed = this.contributionsUnconfirmed.filterBy('vetoed', false);
const contributionsGrouped = groupBy(contributionsUnconfirmed, 'contributorId'); const contributionsGrouped = groupBy(contributionsUnconfirmed, 'contributorId');
const contributorsWithUnconfirmed = contributionsGrouped.map(c => c.value.toString()); const contributorsWithUnconfirmed = contributionsGrouped.map(c => c.value.toString());
@@ -87,7 +87,7 @@ export default Service.extend({
// This is called in the application route's beforeModel(). So it is // This is called in the application route's beforeModel(). So it is
// initialized before everything else, and we can rely on the ethProvider and // initialized before everything else, and we can rely on the ethProvider and
// the potential currentUserAccounts to be available // the potential currentUserAccounts to be available
getEthProvider: function() { getEthProvider () {
let ethProvider; let ethProvider;
return new RSVP.Promise(async (resolve) => { return new RSVP.Promise(async (resolve) => {