From 17fab1782e2d4359e9a1df41b3a510ecf88fcb17 Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Tue, 25 Oct 2016 17:05:53 -0400 Subject: [PATCH] fixes #162 --- client/modules/IDE/pages/IDEView.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; }