diff --git a/components/MyPages/Blocks/Points/EarnAndBurn/JourneyTable/Table/Row/index.tsx b/components/MyPages/Blocks/Points/EarnAndBurn/JourneyTable/Table/Row/index.tsx index 68b2d0c5e..5e2b3b1b3 100644 --- a/components/MyPages/Blocks/Points/EarnAndBurn/JourneyTable/Table/Row/index.tsx +++ b/components/MyPages/Blocks/Points/EarnAndBurn/JourneyTable/Table/Row/index.tsx @@ -1,7 +1,9 @@ "use client" +import { usePathname } from "next/navigation" import { useIntl } from "react-intl" +import { webviews } from "@/constants/routes/webviews" import { dt } from "@/lib/dt" import Link from "@/components/TempDesignSystem/Link" @@ -17,6 +19,8 @@ import { RewardTransactionTypes } from "@/types/components/myPages/myPage/enums" export default function Row({ transaction }: RowProps) { const intl = useIntl() const lang = useLang() + const pathName = usePathname() + const isWebview = webviews.includes(pathName) const nightString = `${transaction.nights} ${transaction.nights === 1 ? intl.formatMessage({ id: "night" }) : intl.formatMessage({ id: "nights" })}` @@ -60,6 +64,7 @@ export default function Row({ transaction }: RowProps) { if (transaction.confirmationNumber === "BALFWD") return null if ( + !isWebview && transaction.bookingUrl && (transaction.type === RewardTransactionTypes.stay || transaction.type === RewardTransactionTypes.rewardNight)