amenpunk před 2 roky
rodič
revize
16a107d763
2 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 2 2
      src/App.css
  2. 1 1
      src/Components/User.jsx

+ 2 - 2
src/App.css

@@ -357,8 +357,8 @@
 }
 .table_password th{
   font-weight: bold;
-  padding-top: 12px;
-  padding-bottom: 12px;
+  padding-top: 5px;
+  padding-bottom: 5px;
   text-align: left;
   background-color: var(--main);
   color: white;

+ 1 - 1
src/Components/User.jsx

@@ -88,7 +88,7 @@ export function User() {
   let dispatch = useDispatch()
   let profile = useSelector((state) => state.user.profile)
   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 = () => {
     dispatch(removeToken({ candi: true }))
     navigate('/logincd')