Don't show error notice for in app announcements
[MAILPOET-1525]
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user