From 0c3e2cdb9ba1837bed3256c0ae78b334374c5b05 Mon Sep 17 00:00:00 2001 From: nsemets Date: Fri, 3 Apr 2026 18:20:29 +0300 Subject: [PATCH] fix(preprint-make-decision): fixed bug with comment comparison --- .../preprint-make-decision/preprint-make-decision.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/features/preprints/components/preprint-details/preprint-make-decision/preprint-make-decision.component.ts b/src/app/features/preprints/components/preprint-details/preprint-make-decision/preprint-make-decision.component.ts index dd854f4f4..7b520e309 100644 --- a/src/app/features/preprints/components/preprint-details/preprint-make-decision/preprint-make-decision.component.ts +++ b/src/app/features/preprints/components/preprint-details/preprint-make-decision/preprint-make-decision.component.ts @@ -172,7 +172,7 @@ export class PreprintMakeDecisionComponent { () => decisionSettings.moderation[this.provider().reviewsWorkflow || ProviderReviewsWorkflow.PreModeration] ); - commentEdited = computed(() => this.reviewerComment()?.trim() !== this.initialReviewerComment()); + commentEdited = computed(() => this.reviewerComment()?.trim() !== this.initialReviewerComment()?.trim()); commentExceedsLimit = computed(() => { const comment = this.reviewerComment();