Skip to content

Commit

Permalink
fix: ReportActionContextMenu.isActiveReportAction
Browse files Browse the repository at this point in the history
  • Loading branch information
sangar-1028 committed Sep 14, 2023
1 parent c24df9c commit 4e9083f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class PopoverReportActionContextMenu extends React.Component {
reportID: '0',
reportActionID: '0',
originalReportID: '0',
reportAction: {},
selection: '',
reportActionDraftMessage: '',
isPopoverVisible: false,
Expand Down Expand Up @@ -114,7 +115,7 @@ class PopoverReportActionContextMenu extends React.Component {
* @return {Boolean}
*/
isActiveReportAction(actionID) {
return Boolean(actionID) && this.state.reportActionID === actionID;
return Boolean(actionID) && (this.state.reportActionID === actionID || this.state.reportAction.reportActionID === actionID);
}

clearActiveReportAction() {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/tasks/TaskDescriptionPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ export default compose(
key: ({route}) => `${ONYXKEYS.COLLECTION.REPORT}${route.params.reportID}`,
},
}),
)(TaskDescriptionPage);
)(TaskDescriptionPage);

0 comments on commit 4e9083f

Please sign in to comment.