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:
Anton Gunnarsson
2025-05-12 09:00:11 +00:00
committed by Joakim Jäderberg
parent cbbde963dc
commit 60af31762b
12 changed files with 32 additions and 18 deletions

View File

@@ -15,7 +15,7 @@ export default async function SASxScandicLinkPage({
}: PageArgs<LangParams>) {
const profile = await getProfileSafely()
if (!profile) return null
if (!profile || !profile.loyalty) return null
const eurobonusMembership = getEurobonusMembership(profile.loyalty)