mirror of
https://github.com/UiO-Gaming/uiogaming.no.git
synced 2026-11-05 13:56:47 +01:00
fix fallback board member image handler
This commit is contained in:
1 file changed
+8
-4
@@ -62,10 +62,14 @@ const BoardMembers = async () => {
|
|||||||
className={`circular-container ${styles.headerImageContainer}`}
|
className={`circular-container ${styles.headerImageContainer}`}
|
||||||
>
|
>
|
||||||
<Image
|
<Image
|
||||||
src={urlFor(member.image?.asset?.url || "/person.png")
|
src={
|
||||||
.width(512)
|
member.image?.asset?.url
|
||||||
.height(512)
|
? urlFor(member.image.asset.url)
|
||||||
.url()}
|
.width(512)
|
||||||
|
.height(512)
|
||||||
|
.url()
|
||||||
|
: "/person.png"
|
||||||
|
}
|
||||||
width={256}
|
width={256}
|
||||||
height={256}
|
height={256}
|
||||||
className="circular"
|
className="circular"
|
||||||
|
|||||||
Reference in new issue
Block a user