Skip to content

Commit 57f47a0

Browse files
committed
refactor(front): drop the inline comments
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015MVW3gg7CVq5oR572ctisx
1 parent 5046af3 commit 57f47a0

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

packages/twenty-front/src/modules/auth/hooks/useImpersonationSession.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@ export const useImpersonationSession = () => {
4848
throw error;
4949
}
5050

51-
// Clear the cached (getOnInit) identity so the reload bootstraps as the
52-
// impersonated user, not the admin. The admin token stays in sessionStorage.
5351
clearSessionLocalStorageKeys();
54-
5552
reloadWithSession(targetPath);
5653
},
5754
[store, getAuthTokensFromLoginToken],
@@ -80,10 +77,7 @@ export const useImpersonationSession = () => {
8077

8178
sessionStorage.removeItem(IMPERSONATION_SESSION_KEY);
8279
store.set(tokenPairState.atom, session.tokenPair);
83-
84-
// Clear the cached identity so the reload bootstraps as the admin again.
8580
clearSessionLocalStorageKeys();
86-
8781
reloadWithSession(session.returnPath);
8882
}, [store, signOut]);
8983

packages/twenty-front/src/pages/settings/profile/SettingsProfile.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ export const SettingsProfile = () => {
5757
title={t`Name`}
5858
description={t`Your name as it will be displayed`}
5959
/>
60-
{/* Reset the inputs when the workspace member identity changes (e.g. impersonation) */}
6160
<NameFields key={currentWorkspaceMember.id} />
6261
</Section>
6362
<Section>

0 commit comments

Comments
 (0)