fix rare crash

This commit is contained in:
Wyvest 2026-03-31 18:30:39 -04:00
parent 93fef599ae
commit 2847c44a81
No known key found for this signature in database

View file

@ -160,6 +160,7 @@ function RecentsCard({
versions,
}: RecentsCardProps) {
const versionInfo = getVersionInfo(version, versions);
const backgroundName = versionInfo?.backgroundName ?? 'MinecraftBuilding';
const entry = getOnlineEntryForVersion(version, versions);
const onlineCluster = getOnlineClusterForVersion(version, versions);
@ -185,7 +186,7 @@ function RecentsCard({
/>
)
: (
<GameBackground className="absolute -z-10 left-0 top-0 w-full h-full scale-110" name={versionInfo!.backgroundName} />
<GameBackground className="absolute -z-10 left-0 top-0 w-full h-full scale-110" name={backgroundName} />
)}
<div