fix beatsaver map causing page to not load if it's unknown
This commit is contained in:
parent
a636e7aa08
commit
0317eae926
@ -33,6 +33,9 @@ export default class BeatSaverService {
|
||||
unknownMap: true,
|
||||
}
|
||||
);
|
||||
if (map.unknownMap) {
|
||||
return undefined;
|
||||
}
|
||||
return map.toObject() as BeatSaverMap;
|
||||
}
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ export default function PlayerStats({ player }: Props) {
|
||||
const stat = <StatValue key={index} color={badge.color} name={badge.name} value={value} />;
|
||||
|
||||
return tooltip ? (
|
||||
<Tooltip asChild={false} display={tooltip}>
|
||||
<Tooltip asChild={false} display={tooltip} key={index}>
|
||||
{stat}
|
||||
</Tooltip>
|
||||
) : (
|
||||
|
Reference in New Issue
Block a user