This commit is contained in:
2026-01-15 11:08:54 +03:00
parent e50d2dfd4c
commit 046773cb8b
3 changed files with 12 additions and 12 deletions

View File

@@ -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 && (
<RewardWaiterCard />
)} */}
{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) ? (
<EarnLoyaltyPointsCard />
)}
) : null}
<BriefMenuCard />
{/* <Ads1 /> */}
<OrderSummary />