Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #590 from anct-cnum/recette
Browse files Browse the repository at this point in the history
MEP (fix)
  • Loading branch information
Ornella452 authored Dec 21, 2023
2 parents 900fe75 + 0407239 commit 2e4749a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/reducers/authenticationReducer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
let user = JSON.parse(localStorage.getItem('user'));
const initialState = user ?? {};
const initialState = {
user
};

export default function authentication(state = initialState, action) {
switch (action.type) {
Expand Down

0 comments on commit 2e4749a

Please sign in to comment.