Skip to content

Commit

Permalink
Add prevprops property to comonent
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Sep 2, 2023
1 parent e9b481a commit 746bd4f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default class ReviewNearbyTasksWidget extends Component {
}
}

componentWillUnmount() {
componentWillUnmount(prevProps) {
const challengeId = _get(this.props.task, 'parent.id');
if (_isFinite(challengeId)) {
this.props.unsubscribeFromChallengeTaskMessages(challengeId);
Expand Down

0 comments on commit 746bd4f

Please sign in to comment.