Skip to content

Commit

Permalink
fix profile icons not updating (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstnbwnkl authored Feb 29, 2024
1 parent ba15789 commit 2661dc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Controls/Directions/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,11 @@ class DirectionsControl extends React.Component {
}

shouldComponentUpdate(nextProps) {
const { dateTime } = this.props
const { dateTime, profile } = this.props
const shouldUpdate =
dateTime.type !== nextProps.dateTime.type ||
dateTime.value !== nextProps.dateTime.value
dateTime.value !== nextProps.dateTime.value ||
profile !== nextProps.profile
if (shouldUpdate) {
this.props.dispatch(makeRequest())
}
Expand Down
File renamed without changes.

0 comments on commit 2661dc6

Please sign in to comment.