Fix ESLint errors

This commit is contained in:
2020-05-10 10:43:02 +02:00
parent 2f4f350a93
commit 12df28f7fd
4 changed files with 10 additions and 7 deletions
+2 -2
View File
@@ -251,12 +251,12 @@ export default Service.extend({
});
},
getCurrentUser: computed('kredits.provider', function() {
getCurrentUser: computed('kredits.provider', 'currentUserAccounts.[]', function() {
if (isEmpty(this.currentUserAccounts)) {
return RSVP.resolve();
}
return this.kredits.Contributor
.functions.getContributorIdByAddress(this.get('currentUserAccounts.firstObject'))
.functions.getContributorIdByAddress(this.currentUserAccounts.firstObject)
.then((id) => {
// check if the user is a contributor or not
if (id === 0) {