Skip to content

Commit

Permalink
fix: delete unnecesary private variable
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpereznext authored and josex2r committed Dec 21, 2021
1 parent 511b8a2 commit ad8ed8e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions addon/services/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@ export default class ModalService extends Service.extend(Evented) {
this.trigger('open', model);

return new Promise((resolve) => {
this.one('close', () => {
if (model.promise._state === 1) {
resolve(model.promise);
} else {
resolve();
}
});
this.one('close', () => resolve(model.promise.catch(() => {})));
});
}

Expand Down

0 comments on commit ad8ed8e

Please sign in to comment.