diff --git a/src/editor/Editor.jsx b/src/editor/Editor.jsx index 864138a..7962d0b 100644 --- a/src/editor/Editor.jsx +++ b/src/editor/Editor.jsx @@ -122,8 +122,8 @@ export default class Editor extends Component { getCurrentAnnotation = () => this.state.currentAnnotation.clone(); - hasChanges = () => - this.props.annotation?.isEqual(this.state.currentAnnotation); + hasChanges = () => + !this.props.annotation?.isEqual(this.state.currentAnnotation); /** Shorthand **/ updateCurrentAnnotation = (diff, saveImmediately) => this.setState({