diff --git a/static/js/VersionBlock/VersionBlock.jsx b/static/js/VersionBlock/VersionBlock.jsx index 846ee55613..9242d513c4 100644 --- a/static/js/VersionBlock/VersionBlock.jsx +++ b/static/js/VersionBlock/VersionBlock.jsx @@ -195,8 +195,8 @@ class VersionBlock extends Component { hasExtendedNotes(){ return !!(this.props.version.extendedNotes || this.props.version.extendedNotesHebrew); } - setTextCompletionStatus(version){ - if (version.iscompleted == "done") { + setTextCompletionStatus(){ + if (status == "done") { return null } else { return ( @@ -215,7 +215,7 @@ class VersionBlock extends Component { this.props.currObjectVersions, this.props.openVersionInSidebar); const openVersionInMainPanel = VersionBlockUtils.openVersionInMainPanel.bind(null, this.props.currentRef, this.props.version, this.props.currObjectVersions, this.props.rendermode, this.props.firstSectionRef, this.props.openVersionInReader); - let textStatus = this.setTextCompletionStatus(this.props.version) + let textStatus = this.setTextCompletionStatus() if (this.state.editing && Sefaria.is_moderator) { // Editing View