fixes
This commit is contained in:
@@ -12,7 +12,7 @@ const LoyaltyCard = () => {
|
|||||||
const { data: restaurant } = useGetRestaurantDetailsQuery("595");
|
const { data: restaurant } = useGetRestaurantDetailsQuery("595");
|
||||||
const isHasLoyaltyGift =
|
const isHasLoyaltyGift =
|
||||||
(restaurant?.loyalty_stamps ?? 0) -
|
(restaurant?.loyalty_stamps ?? 0) -
|
||||||
(restaurant?.customer_loyalty_points ?? 0) ===
|
(restaurant?.customer_loyalty_points ?? 0) <=
|
||||||
0;
|
0;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -70,8 +70,6 @@ const LoyaltyCard = () => {
|
|||||||
<Col>
|
<Col>
|
||||||
<div className={styles.presentIcon}>
|
<div className={styles.presentIcon}>
|
||||||
<div style={{ display: "flex" }}>
|
<div style={{ display: "flex" }}>
|
||||||
{isHasLoyaltyGift ? (
|
|
||||||
<>
|
|
||||||
<Image
|
<Image
|
||||||
className={styles.presentIconItem}
|
className={styles.presentIconItem}
|
||||||
preview={false}
|
preview={false}
|
||||||
@@ -94,8 +92,6 @@ const LoyaltyCard = () => {
|
|||||||
{(restaurant?.loyalty_stamps ?? 0) -
|
{(restaurant?.loyalty_stamps ?? 0) -
|
||||||
(restaurant?.customer_loyalty_points ?? 0)}
|
(restaurant?.customer_loyalty_points ?? 0)}
|
||||||
</ProText>{" "}
|
</ProText>{" "}
|
||||||
</>
|
|
||||||
) : null}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col>
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export default function OrderSummary() {
|
|||||||
const { data: restaurant } = useGetRestaurantDetailsQuery("595");
|
const { data: restaurant } = useGetRestaurantDetailsQuery("595");
|
||||||
const isHasLoyaltyGift =
|
const isHasLoyaltyGift =
|
||||||
(restaurant?.loyalty_stamps ?? 0) -
|
(restaurant?.loyalty_stamps ?? 0) -
|
||||||
(restaurant?.customer_loyalty_points ?? 0) ===
|
(restaurant?.customer_loyalty_points ?? 0) <=
|
||||||
0;
|
0;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user