Skip to content

Commit

Permalink
Merge pull request #1902 from ResearchHub/fix/comment-count
Browse files Browse the repository at this point in the history
Fix: Incorrect filtering applied to comments
  • Loading branch information
yattias authored Jan 8, 2025
2 parents ab6469e + e943fde commit 9232b6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions components/Comment/lib/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export enum COMMENT_TYPES {
ANSWER = "ANSWER",
ANNOTATION = "INNER_CONTENT_COMMENT",
REPLICABILITY_COMMENT = "REPLICABILITY_COMMENT",
BOUNTIES = "BOUNTIES",
}

export const COMMENT_TYPE_OPTIONS = [
Expand Down
4 changes: 2 additions & 2 deletions components/Document/lib/getCommentFilterByTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ const getCommentFilterByTab = (
| null
| undefined => {
switch (tabName) {
case "bounties":
case "grants":
return "BOUNTY";
case "reviews":
return "REVIEW";
case "conversation":
return "DISCUSSION";
return null;
case "replicability":
return "REPLICABILITY_COMMENT";
default:
Expand Down

0 comments on commit 9232b6a

Please sign in to comment.