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:
@@ -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
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user