yazid138 %!s(int64=3) %!d(string=hai) anos
pai
achega
ac9cd115e1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 ? (
 						""