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