From 783ea6709267cf74fbade9e0e0ee7a2147d082e4 Mon Sep 17 00:00:00 2001 From: "gwenael.planchon" Date: Wed, 3 Apr 2024 08:45:02 +0200 Subject: [PATCH] afficher la reponse au lieu de l'id --- science-quest/src/components/jeux/kahoot/KahootPartie.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/science-quest/src/components/jeux/kahoot/KahootPartie.vue b/science-quest/src/components/jeux/kahoot/KahootPartie.vue index 0099b28..220a2c5 100644 --- a/science-quest/src/components/jeux/kahoot/KahootPartie.vue +++ b/science-quest/src/components/jeux/kahoot/KahootPartie.vue @@ -125,8 +125,9 @@ export default { }, repondre(reponse){ this.kahootAPI.repondreQuestion(reponse).then() - - this.question.question=`Réponse "${reponse}" envoyée` + + const reponseEnvoyee=this.question.reponses.find(r=>r.id==reponse).reponse + this.question.question=`Réponse "${reponseEnvoyee}" envoyée` this.question.reponses=[] }, calculerCompteARebours(){