vendredi 5 juin 2020

Expected an assignment or function call and instead saw an expression no-unused-expressions - how to fix this CI error?

Expected an assignment or function call and instead saw an expression no-unused-expressions, I need help on fixing this. Thanks

export const setDecimalFormat = amount => {
  ['de' , 'fr'].includes(getLocale())
    ? amount.replace(/\./g, ',')
    : amount;
};



Aucun commentaire:

Enregistrer un commentaire