Merged in fix/make-user-loyalty-optional (pull request #2044)
fix: Make loyalty optional on user * Optional user loyalty * merge Approved-by: Joakim Jäderberg Approved-by: Linus Flood
This commit is contained in:
committed by
Joakim Jäderberg
parent
cbbde963dc
commit
60af31762b
@@ -17,11 +17,11 @@ export const getPrimaryLinks = cache(
|
||||
userLoyalty,
|
||||
}: {
|
||||
lang: Lang
|
||||
userLoyalty: UserLoyalty
|
||||
userLoyalty?: UserLoyalty
|
||||
}): Promise<MyPagesLink[]> => {
|
||||
const intl = await getIntl({ lang })
|
||||
|
||||
const showSASLink = isScandicXSASActive(userLoyalty)
|
||||
const showSASLink = userLoyalty ? isScandicXSASActive(userLoyalty) : false
|
||||
const [showTeamMemberLink] = await safeTry(showTeamMemberCard())
|
||||
|
||||
const menuItems: MyPagesLink[] = [
|
||||
|
||||
Reference in New Issue
Block a user