fix: Format price display in ProductCard component
- Update the price formatting in ProductCard.vue to use `toLocaleString` to add thousand mark separators.
This commit is contained in:
parent
c91e35ac50
commit
e56dcb9e60
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ const handleImageError = () => {
|
||||||
|
|
||||||
const formatPrice = (price: number, currency: string) => {
|
const formatPrice = (price: number, currency: string) => {
|
||||||
if (currency === 'sat') {
|
if (currency === 'sat') {
|
||||||
return `${price} sats`
|
return `${price.toLocaleString('en-US')} sats`
|
||||||
}
|
}
|
||||||
return new Intl.NumberFormat('en-US', {
|
return new Intl.NumberFormat('en-US', {
|
||||||
style: 'currency',
|
style: 'currency',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue