Fixed tasks banner breaking

This commit was merged in pull request #358.
This commit is contained in:
2023-07-26 16:54:31 +01:00
parent 22e61d2b41
commit a5c62564b7
+1 -1
View File
@@ -19,7 +19,7 @@ export default function OfferCard({ datas, hidden = false, setOfferPopout }) {
className="thumbnail w-full h-full rounded-xl overflow-hidden px-4 pt-4"
style={{
background: `url(${localImgLoad(
`images/taskbanners/${datas.banner}`
`images/taskbanners/${datas?.banner || "default.jpg"}`
)}) center / contain no-repeat`,
}}
>