Merged in fix/SW-3550-member-rates-should-only- (pull request #3005)

fix(SW-3550): Treat unlinked User as non-logged user within booking flow

Approved-by: Joakim Jäderberg
This commit is contained in:
Hrishikesh Vaipurkar
2025-10-27 14:34:19 +00:00
parent d259a26b6e
commit 98e67f5eda
7 changed files with 12 additions and 6 deletions

View File

@@ -47,7 +47,9 @@ export async function createAppContext() {
},
getScandicUser: async () => {
const session = await getSession()
if (!session) return null
// The getSession will either return empty object or session object, hence we need to validate if the object is empty or not
if (!session?.access_token) return null
return await getVerifiedUser({
token: {