Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainValls committed Oct 28, 2024
1 parent 0457ced commit 4cbb593
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions front/src/reducers/user/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export interface UserState {
userPreferences: { safeWord: string };
userRoles: BuiltinRole[];
account: Record<string, string>;
stdcmV2Activated?: boolean;
}

export const userInitialState: UserState = {
Expand All @@ -19,6 +20,7 @@ export const userInitialState: UserState = {
userPreferences: { safeWord: '' },
userRoles: [],
account: {},
stdcmV2Activated: true,
};

export const userSlice = createSlice({
Expand Down Expand Up @@ -48,6 +50,9 @@ export const userSlice = createSlice({
updateUserPreferences(state, action: PayloadAction<{ safeWord: string }>) {
state.userPreferences = action.payload;
},
switchStdcmV2Activated(state) {
state.stdcmV2Activated = !state.stdcmV2Activated;
},
},
});

Expand Down

0 comments on commit 4cbb593

Please sign in to comment.