Fix wallpaper path handling

This commit is contained in:
2025-05-01 09:04:12 -04:00
parent 76be457542
commit 1470eecb99
2 changed files with 6 additions and 3 deletions

View File

@@ -96,7 +96,7 @@ const EventDetails: React.FC = () => {
<Box
sx={{
minHeight: '100vh',
backgroundImage: event.wallpaper ? `url(${event.wallpaper})` : 'url(https://www.rydertech.us/backgrounds/space1.jpg)',
backgroundImage: event?.wallpaper ? `url(${event.wallpaper})` : 'url(https://www.rydertech.us/backgrounds/space1.jpg)',
backgroundSize: 'cover',
backgroundPosition: 'center',
py: 4,