mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-13 03:32:13 +00:00
fix: bug
This commit is contained in:
parent
e7a4888f54
commit
e9186e0a3c
1 changed files with 9 additions and 10 deletions
|
@ -52,16 +52,15 @@ 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 || "",
|
achievements: otherUserAchievements || [],
|
||||||
achievements: otherUserAchievements || [],
|
}
|
||||||
}
|
: null;
|
||||||
: null;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<GameDetailsContextProvider
|
<GameDetailsContextProvider
|
||||||
|
@ -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} />
|
||||||
|
|
Loading…
Reference in a new issue