Skip to content

Commit c81b0ab

Browse files
Use OR logic for isUnreported to match getReportStatusTranslation/getReportStatusColorStyle
Co-authored-by: Jayesh Mangwani <jayeshmangwani@users.noreply.github.com>
1 parent 47e6ad6 commit c81b0ab

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Search/SearchList/ListItem/StatusCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function StatusCell({stateNum, statusNum, isPending, isDeleted, isSelected}: Sta
3535
return null;
3636
}
3737

38-
const isUnreported = stateNum === undefined && statusNum === undefined && !isDeleted;
38+
const isUnreported = (stateNum === undefined || statusNum === undefined) && !isDeleted;
3939
const backgroundColor = isSelected && isUnreported ? theme.buttonHoveredBG : reportStatusColorStyle.backgroundColor;
4040

4141
return (

src/components/Search/SearchList/ListItem/UserInfoAndActionButtonRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function UserInfoAndActionButtonRow({
3434
const {translate} = useLocalize();
3535
const statusText = getReportStatusTranslation({stateNum, statusNum, translate});
3636
const reportStatusColorStyle = getReportStatusColorStyle(theme, stateNum, statusNum);
37-
const isUnreported = stateNum === undefined && statusNum === undefined;
37+
const isUnreported = stateNum === undefined || statusNum === undefined;
3838
const badgeBackgroundColor = isSelected && isUnreported ? theme.buttonHoveredBG : reportStatusColorStyle?.backgroundColor;
3939
const participantFromDisplayName = item.formattedFrom ?? item?.from?.displayName ?? '';
4040
return (

0 commit comments

Comments
 (0)