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
@@ -15,7 +15,7 @@ import styles from "./sidebar.module.css"
|
||||
export default async function SidebarMyPages() {
|
||||
const intl = await getIntl()
|
||||
const profile = await getProfileSafely()
|
||||
const eurobonusMembership = profile
|
||||
const eurobonusMembership = profile?.loyalty
|
||||
? getEurobonusMembership(profile.loyalty)
|
||||
: null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user