apply restaurant decimails formating & fix tax calcualtions
This commit is contained in:
@@ -27,7 +27,7 @@ const ArabicPrice: React.FC<ArabicPriceProps> = ({
|
||||
|
||||
// Format the price to ensure it has 2 decimal places
|
||||
const formattedPrice =
|
||||
typeof price === "number" ? formatPriceUi(price, 3) : price;
|
||||
typeof price === "number" ? formatPriceUi(price, restaurant?.currency_decimals ?? 3) : price;
|
||||
const { textDecoration, ...restStyle } = style;
|
||||
const decorationStyle = textDecoration
|
||||
? ({ textDecoration } as React.CSSProperties)
|
||||
|
||||
Reference in New Issue
Block a user