Updated NotificationsPage to reset to 'all' every time page loads

• Updated:
- NotificationsPage to reset to 'all' every time page loads
This commit is contained in:
Developer 2021-02-25 11:06:42 -05:00
parent 573fdbc981
commit 4d43158fe2

@ -16,6 +16,13 @@ import {
class NotificationsPage extends React.PureComponent {
componentWillUnmount() {
const { selectedFilter } = this.props
if (selectedFilter !== 'all') {
this.props.dispatch(setFilter('active', 'all'))
}
}
onChangeActiveFilter(notificationType) {
this.props.dispatch(setFilter('active', notificationType))