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

View file

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