From 090385e70a59ecedf4d2bf70e37c238f02f1c857 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Mon, 4 Mar 2024 11:36:25 +0100 Subject: [PATCH] fix: satisfaction thresold --- site/source/pages/statistiques/_components/utils.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/source/pages/statistiques/_components/utils.tsx b/site/source/pages/statistiques/_components/utils.tsx index 3bf8c7566..fdc2dd188 100644 --- a/site/source/pages/statistiques/_components/utils.tsx +++ b/site/source/pages/statistiques/_components/utils.tsx @@ -30,7 +30,7 @@ export function formatProgression( export function emojiSatisfaction(satisfaction: number) { return satisfaction > 0.85 ? '😀' - : satisfaction > 0.65 + : satisfaction > 0.7 ? '🙂' : satisfaction > 0.5 ? '😐' @@ -40,7 +40,7 @@ export function emojiSatisfaction(satisfaction: number) { export function messageTypeSatisfaction(satisfaction: number) { return satisfaction > 0.85 ? 'success' - : satisfaction > 0.65 + : satisfaction > 0.7 ? 'primary' : satisfaction > 0.5 ? 'info'