Fix TS2869 compilation issues with TypeScript 5.6.
Release-Notes: skip
Change-Id: I30473d9b008ff43930f07bf6dbfa324b5d628f78
diff --git a/polygerrit-ui/app/utils/comment-util.ts b/polygerrit-ui/app/utils/comment-util.ts
index 7d72534..c8e5173 100644
--- a/polygerrit-ui/app/utils/comment-util.ts
+++ b/polygerrit-ui/app/utils/comment-util.ts
@@ -301,8 +301,8 @@
}
export function isResolved(thread: CommentThread): boolean {
- const lastUnresolved = getLastComment(thread)?.unresolved;
- return !lastUnresolved ?? false;
+ const lastComment = getLastComment(thread);
+ return lastComment !== undefined ? !lastComment.unresolved : true;
}
export function isDraftThread(thread: CommentThread): boolean {