diff --git a/src/renderer/src/pages/profile/profile-content/profile-content.tsx b/src/renderer/src/pages/profile/profile-content/profile-content.tsx index 3509584e..99e09889 100644 --- a/src/renderer/src/pages/profile/profile-content/profile-content.tsx +++ b/src/renderer/src/pages/profile/profile-content/profile-content.tsx @@ -17,6 +17,7 @@ import { RecentGamesBox } from "./recent-games-box"; import { UserGame } from "@types"; import { buildGameAchievementPath, + buildGameDetailsPath, formatDownloadProgress, } from "@renderer/helpers"; import { MAX_MINUTES_TO_SHOW_IN_PLAYTIME } from "@renderer/constants"; @@ -45,11 +46,12 @@ export function ProfileContent() { }, [userProfile]); const buildUserGameDetailsPath = (game: UserGame) => { - // TODO: check if user has hydra cloud - // buildGameDetailsPath({ - // ...game, - // objectId: game.objectId, - // }); + if (!userProfile?.hasActiveSubscription) { + return buildGameDetailsPath({ + ...game, + objectId: game.objectId, + }); + } const userParams = userProfile ? { @@ -172,53 +174,55 @@ export function ProfileContent() { {formatPlayTime(game.playTimeInSeconds)} -
+ {userProfile.hasActiveSubscription && (
- +
+ + + {game.unlockedAchievementCount} /{" "} + {game.achievementCount} + +
+ - {game.unlockedAchievementCount} /{" "} - {game.achievementCount} + {formatDownloadProgress( + game.unlockedAchievementCount / + game.achievementCount + )}
- - {formatDownloadProgress( + + game.achievementCount + } + className={styles.achievementsProgressBar} + />
- - -
+ )}