Verified Commit 1ae9f164 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix switch state change in settings

parent cfee4808
...@@ -18,8 +18,8 @@ class NotificationsSection extends Component { ...@@ -18,8 +18,8 @@ class NotificationsSection extends Component {
this.state = {}; this.state = {};
} }
static getDerivedStateFromProps = (props) => { static getDerivedStateFromProps = (props, state) => {
if (props.status !== 'success') { if (props.status !== 'success' || Object.keys(state).length > 0) {
return null; return null;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment