afficher la reponse au lieu de l'id

front
Gwenael PLANCHON 1 year ago
parent 8727f38c10
commit 783ea67092

@ -125,8 +125,9 @@ export default {
}, },
repondre(reponse){ repondre(reponse){
this.kahootAPI.repondreQuestion(reponse).then() 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=[] this.question.reponses=[]
}, },
calculerCompteARebours(){ calculerCompteARebours(){

Loading…
Cancel
Save