fa
This commit is contained in:
parent
a60a24edfb
commit
3af50b5849
|
|
@ -370,11 +370,14 @@
|
||||||
return currencyConfig.format(value);
|
return currencyConfig.format(value);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Format pourcentage
|
// Format pourcentage sécurisé
|
||||||
const formatPercentage = (value, total) => {
|
const formatPercentage = (value, total) => {
|
||||||
const percentage = (value * 100 / total).toFixed(1);
|
if (total === 0) {
|
||||||
return percentage + '%';
|
return '0%'; // ou éventuellement 'N/A' selon ton besoin
|
||||||
};
|
}
|
||||||
|
const percentage = (value * 100 / total).toFixed(1);
|
||||||
|
return percentage + '%';
|
||||||
|
};
|
||||||
|
|
||||||
// Détection mobile
|
// Détection mobile
|
||||||
const isMobile = window.matchMedia("(max-width: 768px)").matches;
|
const isMobile = window.matchMedia("(max-width: 768px)").matches;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user