fixes
This commit is contained in:
@@ -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,32 +70,28 @@ const LoyaltyCard = () => {
|
||||
<Col>
|
||||
<div className={styles.presentIcon}>
|
||||
<div style={{ display: "flex" }}>
|
||||
{isHasLoyaltyGift ? (
|
||||
<>
|
||||
<Image
|
||||
className={styles.presentIconItem}
|
||||
preview={false}
|
||||
width={32}
|
||||
height={32}
|
||||
src={restaurant?.loyalty_stamp_image}
|
||||
/>
|
||||
<ProText
|
||||
type="secondary"
|
||||
strong
|
||||
style={{
|
||||
fontSize: "1rem",
|
||||
fontWeight: 400,
|
||||
position: "relative",
|
||||
top: 3,
|
||||
margin: "0 2px",
|
||||
}}
|
||||
>
|
||||
x
|
||||
{(restaurant?.loyalty_stamps ?? 0) -
|
||||
(restaurant?.customer_loyalty_points ?? 0)}
|
||||
</ProText>{" "}
|
||||
</>
|
||||
) : null}
|
||||
<Image
|
||||
className={styles.presentIconItem}
|
||||
preview={false}
|
||||
width={32}
|
||||
height={32}
|
||||
src={restaurant?.loyalty_stamp_image}
|
||||
/>
|
||||
<ProText
|
||||
type="secondary"
|
||||
strong
|
||||
style={{
|
||||
fontSize: "1rem",
|
||||
fontWeight: 400,
|
||||
position: "relative",
|
||||
top: 3,
|
||||
margin: "0 2px",
|
||||
}}
|
||||
>
|
||||
x
|
||||
{(restaurant?.loyalty_stamps ?? 0) -
|
||||
(restaurant?.customer_loyalty_points ?? 0)}
|
||||
</ProText>{" "}
|
||||
</div>
|
||||
</div>
|
||||
</Col>
|
||||
|
||||
Reference in New Issue
Block a user