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
@@ -72,7 +72,7 @@ export default async function SASLinkedAccount({
|
||||
async function MatchedAccountInfo() {
|
||||
const user = await getProfileWithExtendedPartnerData()
|
||||
|
||||
if (!user || "error" in user) {
|
||||
if (!user || "error" in user || !user.loyalty) {
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ import type { Lang } from "@/constants/languages"
|
||||
|
||||
export async function TransferPointsForm({ lang }: { lang: Lang }) {
|
||||
const profile = await getProfileWithExtendedPartnerData()
|
||||
if (!profile) return null
|
||||
if (!profile || !profile.loyalty) return null
|
||||
|
||||
const eurobonusMembership = getEurobonusMembership(profile?.loyalty)
|
||||
if (!eurobonusMembership) return null
|
||||
|
||||
Reference in New Issue
Block a user