diff --git a/src/renderer/src/pages/achievement/achievements.tsx b/src/renderer/src/pages/achievement/achievements.tsx index 7110ac02..d145027b 100644 --- a/src/renderer/src/pages/achievement/achievements.tsx +++ b/src/renderer/src/pages/achievement/achievements.tsx @@ -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 ( {isLoading || achievements === null || - otherUserAchievements === null ? ( + (otherUserId && otherUserAchievements === null) ? ( ) : (