Skip to content

Commit

Permalink
correct function name getOrCreateSessionId
Browse files Browse the repository at this point in the history
  • Loading branch information
Karagappa authored and Karagappa committed Oct 11, 2024
1 parent adc1fc1 commit 4fbb114
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/store/DataSelectionSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {GroupFilter} from 'types/group';
*/
export type AGS = string;

function getOrSessionUserId() {
function getOrCreateSessionId() {
let sessionId = sessionStorage.getItem('sessionId');

// If no userId exists in sessionStorage, generate one
Expand All @@ -25,7 +25,7 @@ function getOrSessionUserId() {
return sessionId;
}

const sessionId = getOrSessionUserId();
const sessionId = getOrCreateSessionId();


export function logUserAction(action: any, component: any, property: any) {
Expand Down

0 comments on commit 4fbb114

Please sign in to comment.