Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 53b2b40

Browse files
authored
fix(gui): show "correct" marker for older annotations (#935)
fix(gui): when reviewResult is not set, default to "correct" so marker is shown
1 parent 877f9ef commit 53b2b40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api-editor/gui/src/features/annotations/AnnotationView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ const AnnotationTag: React.FC<AnnotationTagProps> = function ({
327327
const currentUserAction = useAppSelector(selectCurrentUserAction);
328328

329329
const reviewer = (annotation.reviewers ?? [])[0];
330-
const reviewResult = annotation.reviewResult;
330+
const reviewResult = annotation.reviewResult ?? ReviewResult.Correct;
331331
const isReviewed = reviewer !== undefined;
332332

333333
const authors = annotation.authors ?? [];

0 commit comments

Comments
 (0)