Don't show error notice for in app announcements

[MAILPOET-1525]
This commit is contained in:
Rostislav Wolny
2018-09-20 15:23:09 +02:00
parent 41eeae2d14
commit 54e518e664

View File

@ -20,15 +20,7 @@ class InAppAnnouncement extends React.Component {
endpoint: 'settings',
action: 'set',
data: { in_app_announcements: settings },
}).then(() => (this.setState({ announcementsSettings: settings }))
).fail((response) => {
if (response.errors.length > 0) {
MailPoet.Notice.error(
response.errors.map(error => error.message),
{ scroll: true }
);
}
});
}).always(() => (this.setState({ announcementsSettings: settings })));
}
render() {