Remove test line

This commit is contained in:
Jeremie Pardou-Piquemal 2020-06-13 15:24:00 +02:00 committed by Jérémie Pardou-Piquemal
parent d88fcbdc33
commit cf696fefc7

View File

@ -12,7 +12,6 @@ class Settings extends Component {
handleNotificationToggle() { handleNotificationToggle() {
Notification.requestPermission().then(permission => { Notification.requestPermission().then(permission => {
this.props.toggleNotificationEnabled(true);
if (permission === 'granted') { if (permission === 'granted') {
this.props.toggleNotificationEnabled(!this.props.notificationIsEnabled); this.props.toggleNotificationEnabled(!this.props.notificationIsEnabled);
this.props.toggleNotificationAllowed(true); this.props.toggleNotificationAllowed(true);