Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 | 3x 100x 100x 100x | export const formatCurrency = (amount: number | undefined): string => {
Iif (!amount) return '0,00 €';
const formatted = parseFloat(amount?.toString()).toFixed(2);
return formatted.replace(/\./g, ',') + ' €';
};
|