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