diff --git a/apps/scandic-web/components/Blocks/DynamicContent/SAS/LinkAccountBanner/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/SAS/LinkAccountBanner/index.tsx index d72687dde..62c305f4a 100644 --- a/apps/scandic-web/components/Blocks/DynamicContent/SAS/LinkAccountBanner/index.tsx +++ b/apps/scandic-web/components/Blocks/DynamicContent/SAS/LinkAccountBanner/index.tsx @@ -3,7 +3,7 @@ import Image from "@scandic-hotels/design-system/Image" import { Typography } from "@scandic-hotels/design-system/Typography" import { getEurobonusMembership } from "@scandic-hotels/trpc/routers/user/helpers" -import { getProfileWithExtendedPartnerData } from "@/lib/trpc/memoizedRequests" +import { getProfile } from "@/lib/trpc/memoizedRequests" import { getIntl } from "@/i18n" import desktopBackground from "@/public/_static/img/sas/sas-scandic-link-account-banner-desktop.png" @@ -17,7 +17,7 @@ export default async function SASLinkAccountBanner( props: DynamicContentProps["dynamic_content"] ) { const intl = await getIntl() - const user = await getProfileWithExtendedPartnerData() + const user = await getProfile() if (!user || "error" in user || !user.loyalty) { return null diff --git a/apps/scandic-web/components/Blocks/DynamicContent/SAS/LinkedAccounts/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/SAS/LinkedAccounts/index.tsx index ddacfd00a..cf162b126 100644 --- a/apps/scandic-web/components/Blocks/DynamicContent/SAS/LinkedAccounts/index.tsx +++ b/apps/scandic-web/components/Blocks/DynamicContent/SAS/LinkedAccounts/index.tsx @@ -14,7 +14,7 @@ import { SAS_EUROBONUS_TIER_TO_NAME_MAP, TIER_TO_FRIEND_MAP, } from "@/constants/membershipLevels" -import { getProfileWithExtendedPartnerData } from "@/lib/trpc/memoizedRequests" +import { getProfile } from "@/lib/trpc/memoizedRequests" import { Section } from "@/components/Section" import SectionHeader from "@/components/Section/Header/Deprecated" @@ -68,7 +68,7 @@ export default async function SASLinkedAccount({ } async function MatchedAccountInfo() { - const user = await getProfileWithExtendedPartnerData() + const user = await getProfile() if (!user || "error" in user || !user.loyalty) { return null