Skip to content

Commit

Permalink
Merge pull request #2459 from StateVoicesNational/mz/fix-white-screen…
Browse files Browse the repository at this point in the history
…-error
  • Loading branch information
engelhartrueben authored Sep 20, 2024
2 parents a5779a0 + b51b7d9 commit c236951
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/containers/TexterTodoList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class TexterTodoList extends React.Component {
this.props.notifications.stopPolling();
this.props.notifications.startPolling(notificationPollDelay);
// move the result to state
nextProps.notifications.user.notifications = [];
// FUTURE: maybe append for a set of assignmentIds to display them
nextState.notifications = notifications;
}
Expand Down Expand Up @@ -137,7 +136,8 @@ class TexterTodoList extends React.Component {
<Snackbar
open={Boolean(this.state.notifications)}
message={"Some campaigns have replies for you to respond to!"}
onClose={() => {
autoHideDuration={4000}
onClose={() => {
this.setState({ notifications: false });
}}
/>
Expand Down

0 comments on commit c236951

Please sign in to comment.