Fix push-subscription settings when using pc and phone

This commit is contained in:
KMY 2023-08-27 14:13:08 +09:00
parent 7d5280a71d
commit dccd09debf

View file

@ -29,7 +29,12 @@ export default class ColumnSettings extends PureComponent {
};
onPushChange = (path, checked) => {
const { pushSettings } = this.props;
const showPushSettings = pushSettings.get('browserSupport') && pushSettings.get('isSubscribed');
if (showPushSettings) {
this.props.onChange(['push', ...path], checked);
}
};
render () {