amenpunk 1 year ago
parent
commit
16a107d763
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/App.css
  2. 1 1
      src/Components/User.jsx

+ 2 - 2
src/App.css

357
 }
357
 }
358
 .table_password th{
358
 .table_password th{
359
   font-weight: bold;
359
   font-weight: bold;
360
-  padding-top: 12px;
361
-  padding-bottom: 12px;
360
+  padding-top: 5px;
361
+  padding-bottom: 5px;
362
   text-align: left;
362
   text-align: left;
363
   background-color: var(--main);
363
   background-color: var(--main);
364
   color: white;
364
   color: white;

+ 1 - 1
src/Components/User.jsx

88
   let dispatch = useDispatch()
88
   let dispatch = useDispatch()
89
   let profile = useSelector((state) => state.user.profile)
89
   let profile = useSelector((state) => state.user.profile)
90
   const auth = useSelector((state) => state.token.candi)
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
   const CerrarSession = () => {
92
   const CerrarSession = () => {
93
     dispatch(removeToken({ candi: true }))
93
     dispatch(removeToken({ candi: true }))
94
     navigate('/logincd')
94
     navigate('/logincd')