Skip to content

Commit

Permalink
Merge pull request #1512 from GSA/1503-Agency-Logo-Not-Displaying
Browse files Browse the repository at this point in the history
1503 agency logo not displaying
  • Loading branch information
jdonis authored Jan 13, 2025
2 parents 4c3582c + a0e7870 commit 8992e33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/client/src/components/ChallengeDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ export const ChallengeDetails = ({challenge, challengePhases, preview, print, ta
}

return (
console.log("imageBase: " + imageBase)
(challenge && !!challengePhases) ? (
<div className="usa-full-width">
<section className="hero__wrapper" aria-label="Challenge overview details">
Expand All @@ -350,7 +351,7 @@ export const ChallengeDetails = ({challenge, challengePhases, preview, print, ta
<div className="logos">
<img
className="agency-logo"
src={`${imageBase ? imageBase : ''}${encodeURI(challenge.agency_logo || '')}`}
src={`${imageBase !== null ? imageBase : ''}${encodeURI(challenge.agency_logo || '')}`}
alt={`Agency logo for ${challenge.agency_name}`}
/>

Expand Down

0 comments on commit 8992e33

Please sign in to comment.