From 825d4a5128d21c6ec69cbe7f1652530b3dd6d0e0 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 18 Apr 2020 12:06:13 +0200 Subject: [PATCH] Fix bad check --- assets/js/components/movies/picker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/components/movies/picker.js b/assets/js/components/movies/picker.js index ab223be5..86bad12f 100644 --- a/assets/js/components/movies/picker.js +++ b/assets/js/components/movies/picker.js @@ -215,7 +215,7 @@ ComunicWeb.components.movies.picker = { innerHTML: "Delete", onclick: () => { - if(!ComunicWeb.common.messages.confirm("Do you really want to delete this movie ?", async res => { + ComunicWeb.common.messages.confirm("Do you really want to delete this movie ?", async res => { if(!res) return; @@ -228,7 +228,7 @@ ComunicWeb.components.movies.picker = { notify("Could not delete movie!", "danger"); } - })); + }) } })