diff --git a/apps/scandic-web/components/ContentType/DestinationPage/HotelMapCard/DialogImage/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/HotelMapCard/DialogImage/index.tsx
index 860248bfe..06eeabe33 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/HotelMapCard/DialogImage/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/HotelMapCard/DialogImage/index.tsx
@@ -7,16 +7,16 @@ import Chip from "@/components/TempDesignSystem/Chip"
import styles from "./dialogImage.module.css"
interface DialogImageProps {
- image: string | undefined
- altText: string | undefined
- ratings: number
+ image?: string
+ altText?: string
+ rating?: number
imageError: boolean
setImageError: (error: boolean) => void
}
export default function DialogImage({
image,
altText,
- ratings,
+ rating,
imageError,
setImageError,
}: DialogImageProps) {
@@ -32,14 +32,16 @@ export default function DialogImage({
onError={() => setImageError(true)}
/>
)}
-
+ {rating ? (
+
+
+
+
+ {rating}
+
+
+
+ ) : null}
)
}
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/HotelMapCard/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/HotelMapCard/index.tsx
index 8636717ec..fa60367a1 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/HotelMapCard/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/HotelMapCard/index.tsx
@@ -68,7 +68,7 @@ export default function HotelMapCard({
diff --git a/apps/scandic-web/components/HotelReservation/HotelCardDialog/HotelCardDialogImage/index.tsx b/apps/scandic-web/components/HotelReservation/HotelCardDialog/HotelCardDialogImage/index.tsx
index 6891039a4..ac2d33b09 100644
--- a/apps/scandic-web/components/HotelReservation/HotelCardDialog/HotelCardDialogImage/index.tsx
+++ b/apps/scandic-web/components/HotelReservation/HotelCardDialog/HotelCardDialogImage/index.tsx
@@ -12,7 +12,7 @@ import type { HotelCardDialogImageProps } from "@/types/components/hotelReservat
export default function HotelCardDialogImage({
firstImage,
altText,
- ratings,
+ rating,
imageError,
setImageError,
position,
@@ -31,12 +31,14 @@ export default function HotelCardDialogImage({
onError={() => setImageError(true)}
/>
)}
-
-
-
- {ratings}
-
-
+ {rating ? (
+
+
+
+ {rating}
+
+
+ ) : null}
)
}
diff --git a/apps/scandic-web/components/HotelReservation/HotelCardDialog/ListingHotelCardDialog/index.tsx b/apps/scandic-web/components/HotelReservation/HotelCardDialog/ListingHotelCardDialog/index.tsx
index 85d5cfe98..6c8690d39 100644
--- a/apps/scandic-web/components/HotelReservation/HotelCardDialog/ListingHotelCardDialog/index.tsx
+++ b/apps/scandic-web/components/HotelReservation/HotelCardDialog/ListingHotelCardDialog/index.tsx
@@ -62,7 +62,7 @@ export default function ListingHotelCardDialog({
void
position: "top" | "left"