Skip to content

Commit

Permalink
ignore close action
Browse files Browse the repository at this point in the history
  • Loading branch information
marcochavezf committed Dec 29, 2022
1 parent f2f6890 commit d8025e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/home/report/ReportActionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ class ReportActionItem extends Component {
}

render() {
// Ignore closed action here since we're already displaying a footer that explains why the report was closed
if (this.props.action.actionName === CONST.REPORT.ACTIONS.TYPE.CLOSED) {
return null;
}
if (this.props.action.actionName === CONST.REPORT.ACTIONS.TYPE.CREATED) {
return <ReportActionItemCreated reportID={this.props.report.reportID} />;
}
Expand Down

0 comments on commit d8025e0

Please sign in to comment.