Mise à jour du clavier une fois le mot validé

This commit is contained in:
JonathanMM 2022-01-17 22:07:58 +01:00
parent 75ee5288bd
commit a2fcfad658

View file

@ -100,12 +100,12 @@ export default class Gestionnaire {
this._grille.validerMot(mot, resultats, isBonneReponse, skipAnimation, () => {
this._input.updateClavier(resultats);
if (isBonneReponse || this._propositions.length === this._maxNbPropositions) {
this._input.bloquer();
this._victoirePanel.afficher(isBonneReponse, this._motATrouver);
}
});
if (isBonneReponse || this._propositions.length === this._maxNbPropositions) {
this._input.bloquer();
this._victoirePanel.genererResume(isBonneReponse, this._resultats);
this.enregistrerPartieDansStats();
}