Skip to content

Commit

Permalink
Merge pull request #782 from ita-social-projects/FixOfBugsInTheWorkOf…
Browse files Browse the repository at this point in the history
…Tultip

fixed bug
  • Loading branch information
ohorodnykostap authored Sep 12, 2024
2 parents ca68698 + 5f60eb9 commit 396a48f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 396a48f

Please sign in to comment.