Commit 8747421c authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch 'fix/settings-notifications-switch' into 'master'

Fix switch state change in settings

See merge request !188
parents cfee4808 1ae9f164
......@@ -18,8 +18,8 @@ class NotificationsSection extends Component {
this.state = {};
}
static getDerivedStateFromProps = (props) => {
if (props.status !== 'success') {
static getDerivedStateFromProps = (props, state) => {
if (props.status !== 'success' || Object.keys(state).length > 0) {
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