feat: improving ui for download source filter
Some checks failed
Release / build (ubuntu-latest) (push) Has been cancelled
Release / build (windows-2022) (push) Has been cancelled

This commit is contained in:
Chubby Granny Chaser
2025-09-30 20:37:44 +01:00
parent 2aebbb8fa2
commit 79498abdb5
10 changed files with 46 additions and 66 deletions

View File

@@ -45,10 +45,8 @@ export const getGameAchievementData = async (
.then((language) => language || "en");
return HydraApi.get<SteamAchievement[]>(
"/games/achievements",
`/games/${shop}/${objectId}/achievements`,
{
shop,
objectId,
language,
},
{

View File

@@ -16,9 +16,7 @@ export const friendGameSessionEvent = async (payload: FriendGameSession) => {
const [friend, gameStats] = await Promise.all([
HydraApi.get<UserProfile>(`/users/${payload.friendId}`),
HydraApi.get<GameStats>(
`/games/stats?objectId=${payload.objectId}&shop=steam`
),
HydraApi.get<GameStats>(`/games/steam/${payload.objectId}/stats`),
]).catch(() => [null, null]);
if (friend && gameStats) {