Skip to content

Commit

Permalink
fix: simplify nullish coalescing
Browse files Browse the repository at this point in the history
  • Loading branch information
gambinish committed Jan 10, 2025
1 parent c47377e commit e3ff91c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/components/app/assets/nfts/nft-details/nft-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default function NftDetails({ nft }: { nft: Nft }) {
const isImageHosted =
image?.startsWith('https:') || image?.startsWith('http:');
const nftImageURL = useGetAssetImageUrl(
(imageOriginal ?? image) as string | undefined,
imageOriginal ?? image ?? undefined,
ipfsGateway,
) as string | undefined;

Expand Down

0 comments on commit e3ff91c

Please sign in to comment.