From 443bb4f7e766bc317904cefd42060d6e37034388 Mon Sep 17 00:00:00 2001 From: lobsang samdup Date: Tue, 27 Aug 2024 00:06:58 +0530 Subject: [PATCH] Revert "Dev" --- static/js/VersionBlock/VersionBlock.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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