|
@@ -88,7 +88,7 @@ export function User() {
|
|
|
let dispatch = useDispatch()
|
|
let dispatch = useDispatch()
|
|
|
let profile = useSelector((state) => state.user.profile)
|
|
let profile = useSelector((state) => state.user.profile)
|
|
|
const auth = useSelector((state) => state.token.candi)
|
|
const auth = useSelector((state) => state.token.candi)
|
|
|
- let name = profile ? `${(profile?.email.substring(0, 1))} ${profile?.email.substring(1, 2)}` : ""
|
|
|
|
|
|
|
+ let name = profile ? `${(profile?.email?.substring(0, 1))} ${profile?.email?.substring(1, 2)}` : ""
|
|
|
const CerrarSession = () => {
|
|
const CerrarSession = () => {
|
|
|
dispatch(removeToken({ candi: true }))
|
|
dispatch(removeToken({ candi: true }))
|
|
|
navigate('/logincd')
|
|
navigate('/logincd')
|