Skip to content

Commit

Permalink
Remove unnecessary console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
gkatrakazas committed Jan 22, 2025
1 parent b818f8e commit b86e169
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/context/SessionContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export const SessionContextProvider = ({ children }) => {

// The close() will dispatch Event CloseSessionTabLocal in order to call the clearSession
const logout = async () => {
console.log('Logout');
await keystore.close();
};

Expand Down
5 changes: 1 addition & 4 deletions src/services/LocalStorageKeystore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ export function useLocalStorageKeystore(eventTarget: EventTarget): LocalStorageK

const closeSessionTabLocal = useCallback(
async (): Promise<void> => {
console.log('KeystoreEvent: closeSessionTabLocal');
eventTarget.dispatchEvent(new CustomEvent(KeystoreEvent.CloseSessionTabLocal));
clearSessionStorage();
},
Expand All @@ -110,7 +109,7 @@ export function useLocalStorageKeystore(eventTarget: EventTarget): LocalStorageK

const close = useCallback(
async (): Promise<void> => {
console.log('Close');
console.log('Keystore Close');
await idb.destroy();
clearPrivateData();
clearGlobalUserHandleB64u();
Expand Down Expand Up @@ -149,7 +148,6 @@ export function useLocalStorageKeystore(eventTarget: EventTarget): LocalStorageK
if (userHandleB64u && globalUserHandleB64u && (userHandleB64u !== globalUserHandleB64u)) {
// When user logs in in any tab, log out in all other tabs
// that are logged in to a different account
console.log('closeSessionTabLocal by globalUserHandleB64u');
closeSessionTabLocal();
}
},
Expand All @@ -160,7 +158,6 @@ export function useLocalStorageKeystore(eventTarget: EventTarget): LocalStorageK
() => {
if (!privateData) {
// When user logs out in any tab, log out in all tabs
console.log('closeSessionTabLocal by privateData')
closeSessionTabLocal();
}
},
Expand Down

0 comments on commit b86e169

Please sign in to comment.