screen bug fix

This commit is contained in:
Samandar Turgunboyev
2025-12-10 11:02:58 +05:00
parent 87bd8cdea6
commit c426b729b9
24 changed files with 663 additions and 403 deletions

View File

@@ -0,0 +1,8 @@
export const formatPrice = (amount: number | string) => {
const numericAmount = Number(amount) || 0;
const formatted = numericAmount
.toString()
.replace(/\B(?=(\d{3})+(?!\d))/g, ' ');
return formatted;
};