This commit is contained in:
2025-10-22 20:54:52 +03:00
parent 37a7c28c56
commit 42882069a7
2 changed files with 24 additions and 28 deletions

View File

@@ -12,7 +12,7 @@ const LoyaltyCard = () => {
const { data: restaurant } = useGetRestaurantDetailsQuery("595");
const isHasLoyaltyGift =
(restaurant?.loyalty_stamps ?? 0) -
(restaurant?.customer_loyalty_points ?? 0) ===
(restaurant?.customer_loyalty_points ?? 0) <=
0;
return (
@@ -70,8 +70,6 @@ const LoyaltyCard = () => {
<Col>
<div className={styles.presentIcon}>
<div style={{ display: "flex" }}>
{isHasLoyaltyGift ? (
<>
<Image
className={styles.presentIconItem}
preview={false}
@@ -94,8 +92,6 @@ const LoyaltyCard = () => {
{(restaurant?.loyalty_stamps ?? 0) -
(restaurant?.customer_loyalty_points ?? 0)}
</ProText>{" "}
</>
) : null}
</div>
</div>
</Col>

View File

@@ -33,7 +33,7 @@ export default function OrderSummary() {
const { data: restaurant } = useGetRestaurantDetailsQuery("595");
const isHasLoyaltyGift =
(restaurant?.loyalty_stamps ?? 0) -
(restaurant?.customer_loyalty_points ?? 0) ===
(restaurant?.customer_loyalty_points ?? 0) <=
0;
return (