diff --git a/client/modules/IDE/pages/IDEView.js b/client/modules/IDE/pages/IDEView.js index 223b4877..ae9122ef 100644 --- a/client/modules/IDE/pages/IDEView.js +++ b/client/modules/IDE/pages/IDEView.js @@ -155,9 +155,7 @@ class IDEView extends React.Component { } warnIfUnsavedChanges() { // eslint-disable-line - if (this.props.ide.unsavedChanges - && ((this.props.project.owner && this.props.project.owner.id === this.props.user.id) - || (!this.props.project.owner))) { + if (this.props.ide.unsavedChanges) { if (!window.confirm('Are you sure you want to leave this page? You have unsaved changes.')) { return false; }