yazid138 3 lat temu
rodzic
commit
ac9cd115e1
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      components/Main/DetailLaporan.js

+ 1 - 1
components/Main/DetailLaporan.js

@@ -7,7 +7,7 @@ function DetailLaporan({ data, noTitle = false, noStatus = false }) {
 	const user = useSelector((state) => state.user);
 	return (
 		<>
-			{(!data.user.isPrivate || user.role.id === 2020) && (
+			{(!data.user.isPrivate || user?.role.id === 2020) && (
 				<>
 					{noTitle ? (
 						""