fix: avoid invite logout

This commit is contained in:
Rotimi Best
2024-09-17 14:24:37 +01:00
parent 79839fca42
commit 27f333fdcf
4 changed files with 70 additions and 56 deletions
@@ -16,16 +16,18 @@ export const load = async ({ params = { hash: '' } }) => {
const { orgId, email, orgSiteName } = JSON.parse(hashData);
const _currentOrg = await getCurrentOrg(orgSiteName, true);
const currentOrg = await getCurrentOrg(orgSiteName, true);
const profile = await getProfile(email);
console.log('profile data', profile);
return {
orgId,
email,
currentOrg: _currentOrg,
profile
invite: {
orgId,
email,
currentOrg,
profile
}
};
} catch (error) {
console.error('Error decoding invite params.hash', error);