Skip to content

Commit

Permalink
update isStatusVisible
Browse files Browse the repository at this point in the history
  • Loading branch information
perunt committed Aug 17, 2023
1 parent ca3fcc1 commit 924bf6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/LHNOptionsList/OptionRowLHN.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function OptionRowLHN(props) {
const statusClearAfterDate = lodashGet(optionItem, 'status.clearAfter', '');
const formattedDate = DateUtils.getStatusUntilDate(statusClearAfterDate);
const statusContent = formattedDate ? `${statusText} (${formattedDate})` : statusText;
const isStatusVisible = Permissions.canUseCustomStatus(props.betas) && emojiCode && ReportUtils.isPlainDirectMessage(optionItem);
const isStatusVisible = Permissions.canUseCustomStatus(props.betas) && !!emojiCode && ReportUtils.isPlainDirectMessage(optionItem);

return (
<OfflineWithFeedback
Expand Down

0 comments on commit 924bf6e

Please sign in to comment.