Skip to content

Commit

Permalink
hotfix reconnecting
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamperoyge committed Feb 6, 2024
1 parent 4e82a1b commit 6deab5f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const CallbackPage = () => {
if (!state) return { isCreateOrg: null, orgId: null };
try {
let isCreateOrg = JSON.parse(state)?.create_org;
return { isCreateOrg, orgId: null };
return isCreateOrg ? { isCreateOrg, orgId: null } : { isCreateOrg: null, orgId: state };
} catch (error) {
return { isCreateOrg: null, state };
return { isCreateOrg: null, orgId: state };
}
}, [state]);

Expand Down

0 comments on commit 6deab5f

Please sign in to comment.