Skip to content

Commit

Permalink
just hide the mini crest if not avail
Browse files Browse the repository at this point in the history
  • Loading branch information
smallbrownbike committed Jan 10, 2025
1 parent d5bc6ed commit 18ccd24
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/components/Team/Crest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,18 +293,14 @@ export default function Crest({
image={values.miniCrest}
className="!size-full bg-white rounded-full border border-border dark:border-border-dark overflow-hidden !p-2"
/>
) : (
) : values.miniCrest?.objectURL ? (
<div className="size-full">
{values.miniCrest?.objectURL ? (
<img
src={values.miniCrest?.objectURL}
className="absolute w-full h-full object-contain object-center inset-0 size-full bg-white rounded-full border border-border dark:border-border-dark overflow-hidden"
/>
) : (
<div className="size-full bg-white rounded-full border border-border dark:border-border-dark overflow-hidden"></div>
)}
<img
src={values.miniCrest?.objectURL}
className="absolute w-full h-full object-contain object-center inset-0 size-full bg-white rounded-full border border-border dark:border-border-dark overflow-hidden"
/>
</div>
)}
) : null}
</div>
) : null}
{values.crestOptions ? (
Expand Down

0 comments on commit 18ccd24

Please sign in to comment.