Use ember style empty promise
This commit is contained in:
@@ -294,7 +294,7 @@ export default Service.extend({
|
||||
|
||||
getCurrentUser: computed('ethProvider', function() {
|
||||
if (Ember.isEmpty(this.get('currentUserAccounts'))) {
|
||||
return new Promise((resolve) => resolve(null));
|
||||
return Ember.RSVP.resolve();
|
||||
}
|
||||
return this.get('contributorsContract')
|
||||
.then((contract) => {
|
||||
|
||||
Reference in New Issue
Block a user