diff --git a/front/src/reducers/user/index.ts b/front/src/reducers/user/index.ts index e4689ed822..1eb31b43ff 100644 --- a/front/src/reducers/user/index.ts +++ b/front/src/reducers/user/index.ts @@ -10,6 +10,7 @@ export interface UserState { userPreferences: { safeWord: string }; userRoles: BuiltinRole[]; account: Record; + stdcmV2Activated?: boolean; } export const userInitialState: UserState = { @@ -19,6 +20,7 @@ export const userInitialState: UserState = { userPreferences: { safeWord: '' }, userRoles: [], account: {}, + stdcmV2Activated: true, }; export const userSlice = createSlice({ @@ -48,6 +50,9 @@ export const userSlice = createSlice({ updateUserPreferences(state, action: PayloadAction<{ safeWord: string }>) { state.userPreferences = action.payload; }, + switchStdcmV2Activated(state) { + state.stdcmV2Activated = !state.stdcmV2Activated; + }, }, });