Merged in feat/3614-basicInfo (pull request #3427)

feat(SW-3614): use new loyalty prop in basicProfile

* feat(SW-3614): use new loyalty prop in basicProfile

* PR fixes


Approved-by: Matilda Landström
This commit is contained in:
Linus Flood
2026-01-15 14:02:28 +00:00
parent b9d134bca6
commit 7639daf792
12 changed files with 83 additions and 46 deletions

View File

@@ -22,6 +22,17 @@ export const getBasicProfile = cache(async function getMemoizedBasicProfile() {
return caller.user.getBasic()
})
export const getBasicProfileSafely = cache(
async function getMemoizedBasicProfile() {
try {
const caller = await serverClient()
return caller.user.getBasic()
} catch {
return null
}
}
)
export const getProfileSafely = cache(
async function getMemoizedProfileSafely() {
const caller = await serverClient()
@@ -59,13 +70,6 @@ export const getMembershipLevelSafely = cache(
}
)
export const getMembershipCards = cache(
async function getMemoizedMembershipCards() {
const caller = await serverClient()
return caller.user.membershipCards()
}
)
export const getHotelsByCSFilter = cache(async function getMemoizedHotels(
input: GetHotelsByCSFilterInput
) {