Skip to content

Commit

Permalink
Fix bug in displaying widget footer logos (#2322)
Browse files Browse the repository at this point in the history
  • Loading branch information
entrotech authored Jan 16, 2025
1 parent a2664d2 commit d2be0a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/src/components/Layout/WidgetFooter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ function WidgetFooterSection(props) {
>
{captionText}
</Box>

{maintainers.map((maintainer) => {
const logoMaintainerPath = maintainer.path?.default;
const logoMaintainerPath = maintainer.path;
const imageType = logoMaintainerPath
? logoMaintainerPath.split(".").pop()
: "unknown";
Expand Down Expand Up @@ -134,7 +135,7 @@ function WidgetFooterSection(props) {
{logoPath ? (
<a href={url} target="_blank" rel="noopener noreferrer">
<img
src={logoPath ? logoPath.default : logoPath[1].default}
src={logoPath}
className={className}
style={
imageType === "svg"
Expand Down

0 comments on commit d2be0a7

Please sign in to comment.