fix(SW-435): Fixed issue with Nordic Swan logo because getLang was not awaited
Approved-by: Linus Flood
This commit is contained in:
@@ -19,7 +19,7 @@ interface ReviewsSubpageProps {
|
|||||||
|
|
||||||
export default async function ReviewsSubpage({ hotel }: ReviewsSubpageProps) {
|
export default async function ReviewsSubpage({ hotel }: ReviewsSubpageProps) {
|
||||||
const intl = await getIntl()
|
const intl = await getIntl()
|
||||||
const lang = getLang()
|
const lang = await getLang()
|
||||||
const tripAdvisorData = hotel.ratings?.tripAdvisor
|
const tripAdvisorData = hotel.ratings?.tripAdvisor
|
||||||
|
|
||||||
if (!tripAdvisorData?.reviews.widgetScriptEmbedUrlIframe) {
|
if (!tripAdvisorData?.reviews.widgetScriptEmbedUrlIframe) {
|
||||||
|
|||||||
Reference in New Issue
Block a user