fixes
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user