Moral sur éthylisme

This commit is contained in:
2020-12-19 01:14:02 +01:00
parent 6f22c4ab18
commit df7d39f38e
4 changed files with 53 additions and 35 deletions

View File

@ -203,8 +203,8 @@ export class RdDUtility {
/* -------------------------------------------- */
static getNomEthylisme( niveauEthylisme ) {
let index = Math.abs(niveauEthylisme);
return nomEthylisme[index];
let index = -niveauEthylisme;
return index <0 ? 'Aucun' : nomEthylisme[index];
}
/* -------------------------------------------- */