Skip to content

Commit

Permalink
Remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
mountiny committed Aug 20, 2021
1 parent 1e79850 commit 9135cfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class ReportActionCompose extends React.Component {

// If we switch from a sidebar, the component does not mount again
// so we need to update the comment manually.
if (prevProps.comment !== this.props.comment && this.textInput) {
if (prevProps.comment !== this.props.comment) {
this.textInput.setNativeProps({text: this.props.comment});
}
}
Expand Down

0 comments on commit 9135cfb

Please sign in to comment.