Skip to content

Commit

Permalink
Merge pull request #87 from MelodyFish/enhancement/addCodeBoundaryPro…
Browse files Browse the repository at this point in the history
…tection

Fix: add boundary protection for customTheme file
  • Loading branch information
SoYoung210 authored Jan 7, 2025
2 parents 2c7063d + 485bc03 commit bdba69c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/custom-theme/app/IpHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ export default function IpHeader() {
<h2 className="text-xs text-gray-500">By {nftData?.owners[0].owner_address}</h2>
{nftData?.previews.image_medium_url ?
// eslint-disable-next-line @next/next/no-img-element
<img src={nftData.previews.image_medium_url} alt={nftData.name} className="w-full aspect-video object-contain border border-gray-200 rounded-md my-2" />
<img
src={nftData.previews.image_medium_url}
alt={nftData?.name || "No image available"}
className="w-full aspect-video object-contain border border-gray-200 rounded-md my-2"
/>
: null}
</div>
)
Expand Down

0 comments on commit bdba69c

Please sign in to comment.