Skip to content
Snippets Groups Projects
Commit 32b64753 authored by maria-moroz's avatar maria-moroz
Browse files

Update notiflix.js

parent 67c4c408
No related branches found
No related tags found
No related merge requests found
...@@ -42,9 +42,13 @@ class Notification { ...@@ -42,9 +42,13 @@ class Notification {
Notiflix.Notify.warning('Oops, you did not add anything to "QUEUE"', this.options); Notiflix.Notify.warning('Oops, you did not add anything to "QUEUE"', this.options);
} }
onError() { onNoFilmFound() {
Notiflix.Notify.failure('Sorry, no movie found :(', this.options); Notiflix.Notify.failure('Sorry, no movie found :(', this.options);
} }
onError() {
Notiflix.Notify.failure('Sorry, something went wrong :(', this.options);
}
} }
export default new Notification(notiflixParams); export default new Notification(notiflixParams);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment