From 7dc1552cf51f0ee5e1a2c0884575ff83afead418 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Mon, 1 Feb 2021 11:51:19 +0000 Subject: [PATCH] [FIX] im_livechat: smiley feedback correspond to choice MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a user on website sends livechat feedbacks: - Good -> send an average smiley 😐 - Average -> send ?? instead of smiley This is because in e4a4ffb value of good (😊) was changed from 10 to 5, and value for average (😐) was changed from 5 to 3, but it was not reflected in one part of the code. opw-2447246 closes odoo/odoo#65338 X-original-commit: 45ea88e58d2a834da4c5ad8ff656481ac1f9ab5d Signed-off-by: Nicolas Lempereur (nle) --- addons/im_livechat/static/src/legacy/public_livechat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/im_livechat/static/src/legacy/public_livechat.js b/addons/im_livechat/static/src/legacy/public_livechat.js index bd9daa6ab5d..951ebb9ca45 100644 --- a/addons/im_livechat/static/src/legacy/public_livechat.js +++ b/addons/im_livechat/static/src/legacy/public_livechat.js @@ -22,8 +22,8 @@ var LIVECHAT_COOKIE_HISTORY = 'im_livechat_history'; var HISTORY_LIMIT = 15; var RATING_TO_EMOJI = { - "10": "😊", - "5": "😐", + "5": "😊", + "3": "😐", "1": "😞" };