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:
@@ -35,10 +35,10 @@ export const performLevelUpgrade = protectedProcedure
|
||||
const [profile, error] = await safeTry(
|
||||
getBasicUser({ token: ctx.session.token })
|
||||
)
|
||||
if (!profile || error) {
|
||||
if (!profile || error || !profile.loyalty?.tier) {
|
||||
return { tierMatchState: "error" }
|
||||
}
|
||||
const currentLevel = profile.tier
|
||||
const currentLevel = profile.loyalty.tier
|
||||
|
||||
sasLogger.debug("tier match started")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user