Merged in fix/sw-3514-missing-membership-input-for-multiroom (pull request #2991)
fix(SW-3514): Show join Scandic Friends card for SAS multiroom * Show join card for room 2+ Approved-by: Hrishikesh Vaipurkar
This commit is contained in:
@@ -9,7 +9,6 @@ import Footnote from "@scandic-hotels/design-system/Footnote"
|
|||||||
import Checkbox from "@scandic-hotels/design-system/Form/Checkbox"
|
import Checkbox from "@scandic-hotels/design-system/Form/Checkbox"
|
||||||
import Link from "@scandic-hotels/design-system/Link"
|
import Link from "@scandic-hotels/design-system/Link"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
import { trpc } from "@scandic-hotels/trpc/client"
|
|
||||||
|
|
||||||
import { useRoomContext } from "../../../../../contexts/EnterDetails/RoomContext"
|
import { useRoomContext } from "../../../../../contexts/EnterDetails/RoomContext"
|
||||||
import useLang from "../../../../../hooks/useLang"
|
import useLang from "../../../../../hooks/useLang"
|
||||||
@@ -27,8 +26,6 @@ export function PartnerSASJoinScandicFriendsCard({
|
|||||||
}: Props) {
|
}: Props) {
|
||||||
const lang = useLang()
|
const lang = useLang()
|
||||||
const intl = useIntl()
|
const intl = useIntl()
|
||||||
const { data: euroBonusProfile } =
|
|
||||||
trpc.partner.sas.getEuroBonusProfile.useQuery()
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
room,
|
room,
|
||||||
@@ -42,10 +39,6 @@ export function PartnerSASJoinScandicFriendsCard({
|
|||||||
updateJoin(event.target.value)
|
updateJoin(event.target.value)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (euroBonusProfile && euroBonusProfile.linkStatus !== "UNLINKED") {
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!("member" in room.roomRate) || !room.roomRate.member) {
|
if (!("member" in room.roomRate) || !room.roomRate.member) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user