From 5f60eb920d6355ac2c03703f2442f472c9b9278d Mon Sep 17 00:00:00 2001 From: Ostap Ohorodnyk Date: Thu, 12 Sep 2024 22:49:06 +0300 Subject: [PATCH] fixed bug --- .../MiniComponents/PendingModerationIcon/PendingStatus.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FrontEnd/src/components/MiniComponents/PendingModerationIcon/PendingStatus.jsx b/FrontEnd/src/components/MiniComponents/PendingModerationIcon/PendingStatus.jsx index 3550ad515..ec775f189 100644 --- a/FrontEnd/src/components/MiniComponents/PendingModerationIcon/PendingStatus.jsx +++ b/FrontEnd/src/components/MiniComponents/PendingModerationIcon/PendingStatus.jsx @@ -3,8 +3,8 @@ import styles from './PendingStatus.module.css'; const PendingStatus = ({ profile, elementType }) => { - const bannerApproved = profile?.banner.is_approved; - const logoApproved = profile?.logo.is_approved; + const bannerApproved = profile?.banner?.is_approved; + const logoApproved = profile?.logo?.is_approved; const shouldShowTooltip = (elementType === 'banner' && bannerApproved === false) || (elementType === 'logo' && logoApproved === false);