Skip to content

Commit 2661dc6

Browse files
authored
fix profile icons not updating (#214)
1 parent ba15789 commit 2661dc6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Controls/Directions/index.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,11 @@ class DirectionsControl extends React.Component {
7474
}
7575

7676
shouldComponentUpdate(nextProps) {
77-
const { dateTime } = this.props
77+
const { dateTime, profile } = this.props
7878
const shouldUpdate =
7979
dateTime.type !== nextProps.dateTime.type ||
80-
dateTime.value !== nextProps.dateTime.value
80+
dateTime.value !== nextProps.dateTime.value ||
81+
profile !== nextProps.profile
8182
if (shouldUpdate) {
8283
this.props.dispatch(makeRequest())
8384
}
File renamed without changes.

0 commit comments

Comments
 (0)