amenpunk 1 rok temu
rodzic
commit
16a107d763
2 zmienionych plików z 3 dodań i 3 usunięć
  1. 2 2
      src/App.css
  2. 1 1
      src/Components/User.jsx

+ 2 - 2
src/App.css

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

+ 1 - 1
src/Components/User.jsx

@@ -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')