This commit is contained in:
Zamitto 2024-10-14 17:46:52 -03:00
parent e7a4888f54
commit e9186e0a3c

View File

@ -52,16 +52,15 @@ export function Achievement() {
if (!objectId || !shop || !title) return null;
const otherUserId = userDetails?.id == userId ? null : userId;
const otherUserId = userDetails?.id === userId ? null : userId;
const otherUser =
otherUserId != null
? {
userId: otherUserId,
displayName: displayName || "",
achievements: otherUserAchievements || [],
}
: null;
const otherUser = otherUserId
? {
userId: otherUserId,
displayName: displayName || "",
achievements: otherUserAchievements || [],
}
: null;
return (
<GameDetailsContextProvider
@ -78,7 +77,7 @@ export function Achievement() {
>
{isLoading ||
achievements === null ||
otherUserAchievements === null ? (
(otherUserId && otherUserAchievements === null) ? (
<AchievementsSkeleton />
) : (
<AchievementsContent otherUser={otherUser} />