diff --git a/src/pages/checkout/page.tsx b/src/pages/checkout/page.tsx
index bb9d5f4..67f6d43 100644
--- a/src/pages/checkout/page.tsx
+++ b/src/pages/checkout/page.tsx
@@ -32,6 +32,7 @@ export default function CheckoutPage() {
coupon,
customerName,
tip,
+ restaurant,
} = useAppSelector(selectCart);
const { token } = useAppSelector((state) => state.auth);
useEffect(() => {
@@ -136,9 +137,13 @@ export default function CheckoutPage() {
{/* {orderType !== OrderType.Redeem && orderType !== OrderType.Gift && (
)} */}
- {orderType !== OrderType.Redeem && orderType !== OrderType.Gift && (
+ {orderType !== OrderType.Redeem &&
+ orderType !== OrderType.Gift &&
+ restaurant?.is_loyalty_enabled === 1 &&
+ (restaurant?.customer_loyalty_points ?? 0) >
+ (restaurant?.loyalty_stamps ?? 0) ? (
- )}
+ ) : null}
{/* */}
diff --git a/src/pages/product/components/ExtraGroupsContainer.tsx b/src/pages/product/components/ExtraGroupsContainer.tsx
index 013e846..9165167 100644
--- a/src/pages/product/components/ExtraGroupsContainer.tsx
+++ b/src/pages/product/components/ExtraGroupsContainer.tsx
@@ -1,7 +1,5 @@
import { Divider } from "antd";
-import ProText from "components/ProText";
import { Dispatch, SetStateAction } from "react";
-import { useTranslation } from "react-i18next";
import { TheExtrasGroup } from "utils/types/appTypes";
@@ -16,7 +14,6 @@ export default function ExtraGroupsContainer({
selectedExtrasByGroup: Record;
setSelectedExtrasByGroup: Dispatch>>;
}) {
- const { t } = useTranslation();
return (
<>
@@ -24,7 +21,7 @@ export default function ExtraGroupsContainer({
-
{t("menu.optional")}
-
+
*/}
{/*
{t("menu.choose1")}
diff --git a/src/pages/restaurant/page.tsx b/src/pages/restaurant/page.tsx
index cff7a1d..38eb645 100644
--- a/src/pages/restaurant/page.tsx
+++ b/src/pages/restaurant/page.tsx
@@ -41,9 +41,7 @@ export default function RestaurantPage() {
const param = useParams();
const [searchParams] = useSearchParams();
const { pathname } = useLocation();
- const { orderType } = useAppSelector(
- (state) => state.order,
- );
+ const { orderType } = useAppSelector((state) => state.order);
const { isRTL } = useAppSelector((state) => state.locale);
const { data: restaurant, isLoading } = useGetRestaurantDetailsQuery(
param.subdomain,
@@ -119,7 +117,7 @@ export default function RestaurantPage() {
-
+ {/*
@@ -127,7 +125,7 @@ export default function RestaurantPage() {
-
+ */}