apply restaurant decimails formating & fix tax calcualtions
This commit is contained in:
@@ -21,6 +21,7 @@ const PaymentMethods = () => {
|
||||
const { paymentMethod, orderType } = useAppSelector(selectCart);
|
||||
const dispatch = useAppDispatch();
|
||||
const grandTotal = useAppSelector(selectGrandTotal);
|
||||
const { restaurant } = useAppSelector((state) => state.order);
|
||||
// const { isRTL } = useAppSelector((state) => state.locale);
|
||||
|
||||
const options: {
|
||||
@@ -50,7 +51,7 @@ const PaymentMethods = () => {
|
||||
</>
|
||||
),
|
||||
value: "cash",
|
||||
price: formatPriceUi(grandTotal, 3),
|
||||
price: formatPriceUi(grandTotal, restaurant.currency_decimals ?? 3),
|
||||
style: {
|
||||
color: colors.primary,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user