summaryrefslogtreecommitdiff
path: root/addons/im_livechat/static/src
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2021-02-01 11:51:19 +0000
committerNicolas Lempereur <nle@odoo.com>2021-02-01 11:55:36 +0000
commit45ea88e58d2a834da4c5ad8ff656481ac1f9ab5d (patch)
treed6b99fda12c9459d339168e870c5333c080340fc /addons/im_livechat/static/src
parentc324c024d4c5e013b2405b509e91337bd3dc4dc7 (diff)
[FIX] im_livechat: smiley feedback correspond to choice
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#65328 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/im_livechat/static/src')
-rw-r--r--addons/im_livechat/static/src/legacy/public_livechat.js4
1 files 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": "😞"
};