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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user