Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckcarpenter committed Sep 12, 2018
1 parent 92f5da2 commit e6e0fc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addon/services/tour.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ export default Service.extend(Evented, {
* @param {string} completeOrCancel 'complete' or 'cancel'
*/
onTourFinish(completeOrCancel) {
set(this, 'isActive', false);
if (!this.isDestroyed) {
set(this, 'isActive', false);
}
this.cleanup();
this.trigger(completeOrCancel);
},
Expand Down

0 comments on commit e6e0fc7

Please sign in to comment.