Skip to content

Commit c647213

Browse files
authored
fix: replace decimal separator in order confirmation (#425)
* fix: replace decimal separator * fix: remove `replace` functions
1 parent b9dec00 commit c647213

File tree

1 file changed

+1
-3
lines changed
  • src/modules/order/components/shipping-details

1 file changed

+1
-3
lines changed

src/modules/order/components/shipping-details/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ const ShippingDetails = ({ order }: ShippingDetailsProps) => {
6060
{convertToLocale({
6161
amount: order.shipping_methods?.[0].total ?? 0,
6262
currency_code: order.currency_code,
63-
})
64-
.replace(/,/g, "")
65-
.replace(/\./g, ",")}
63+
})}
6664
)
6765
</Text>
6866
</div>

0 commit comments

Comments
 (0)