mirror of
https://github.com/franjsco/tick3t
synced 2025-01-14 10:26:17 +01:00
refactor: remove console.log
This commit is contained in:
parent
6b92560620
commit
95ec32b9c8
@ -2,12 +2,8 @@ import { userConstants } from '../_constants/user.constants';
|
|||||||
|
|
||||||
let userLocalStorage = JSON.parse(localStorage.getItem('user'));
|
let userLocalStorage = JSON.parse(localStorage.getItem('user'));
|
||||||
|
|
||||||
|
|
||||||
const initialState = userLocalStorage ? {loggedIn: true} : {loggedIn: false};
|
const initialState = userLocalStorage ? {loggedIn: true} : {loggedIn: false};
|
||||||
|
|
||||||
console.log(initialState);
|
|
||||||
|
|
||||||
|
|
||||||
export function user(state = initialState, action) {
|
export function user(state = initialState, action) {
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
case userConstants.LOGIN_REQUEST:
|
case userConstants.LOGIN_REQUEST:
|
||||||
|
Loading…
Reference in New Issue
Block a user