diff --git a/client/src/containers/projects/detail/panel.tsx b/client/src/containers/projects/detail/panel.tsx
index 1778d54b..8491a124 100644
--- a/client/src/containers/projects/detail/panel.tsx
+++ b/client/src/containers/projects/detail/panel.tsx
@@ -145,13 +145,17 @@ export default function ProjectDetailPanel() {
{data && indicators && (
-
+ {data.main_image?.data?.attributes?.url ? (
+
+ ) : (
+
+ )}
{data?.name}
@@ -236,10 +240,10 @@ export default function ProjectDetailPanel() {
{!!data?.gallery?.data?.length &&
data.gallery.data.map((img, index) => (
- {index >= 0 && index % 5 === 0 && (
+ {index >= 0 && index % 5 === 0 && img?.attributes?.url && (
index > 0 &&
- index % 5 != 0 && (
+ index % 5 != 0 &&
+ img?.attributes?.url && (