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:
Linus Flood
2026-01-15 14:02:28 +00:00
parent b9d134bca6
commit 7639daf792
12 changed files with 83 additions and 46 deletions

View File

@@ -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")