From 5a362575916609fc5ff2a9a5b1d694dc9d1ecd86 Mon Sep 17 00:00:00 2001 From: Dennis Keil Date: Wed, 23 Aug 2023 17:21:25 +0200 Subject: [PATCH] cleanup --- app/src/api/following.ts | 4 ++-- app/src/api/helper/api.ts | 2 +- app/src/hooks/use-lazy-api.ts | 2 +- app/src/view/main/main-matches.tsx | 2 +- app/src/view/main/main-stats.tsx | 2 +- app/src/view/user.page.tsx | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/src/api/following.ts b/app/src/api/following.ts index a3d024d3..14b86ade 100644 --- a/app/src/api/following.ts +++ b/app/src/api/following.ts @@ -194,7 +194,7 @@ export async function twitchLive(channel?: string): Promise { // } as any)); const url = getHost('aoe2companion-api') + `twitch/live?channel=${channel}`; - console.log(url); + // console.log(url); return await fetchJson('twitchLive', url, { method: 'GET', headers: { @@ -236,7 +236,7 @@ export interface IDiscordInfo { export async function discordOnline(serverId: string): Promise { const url = `https://discord.com/api/v6/guilds/${serverId}/widget.json`; - console.log(url); + // console.log(url); return await fetchJson('discordOnline', url, { method: 'GET', headers: { diff --git a/app/src/api/helper/api.ts b/app/src/api/helper/api.ts index 21bd6afb..ccb0d928 100644 --- a/app/src/api/helper/api.ts +++ b/app/src/api/helper/api.ts @@ -63,7 +63,7 @@ export async function fetchProfiles(params: IFetchProfileParams) { // } export async function fetchMatches(params: IFetchMatchesParams) { - console.log('fetchMatches', params); +// console.log('fetchMatches', params); const queryString = makeQueryString(decamelizeKeys({ ...removeReactQueryParams(params), page: params.pageParam || 1, diff --git a/app/src/hooks/use-lazy-api.ts b/app/src/hooks/use-lazy-api.ts index 8f056044..90c2c5b1 100644 --- a/app/src/hooks/use-lazy-api.ts +++ b/app/src/hooks/use-lazy-api.ts @@ -19,7 +19,7 @@ export function useLazyApi any>(options: ILazyApiOpt const load = async (append: boolean, ...args: Parameters) => { if (!mountedRef.current) return null; - console.log('LOAD', append); + // console.log('LOAD', append); // Save current request ref requestRef.current++; diff --git a/app/src/view/main/main-matches.tsx b/app/src/view/main/main-matches.tsx index bab3b762..71e57483 100644 --- a/app/src/view/main/main-matches.tsx +++ b/app/src/view/main/main-matches.tsx @@ -89,7 +89,7 @@ function MainMatchesInternal({profileId}: {profileId: number}) { keepPreviousData: true, }); - console.log('data', data); + // console.log('data', data); const toggleWithMe = () => setWithMe(!withMe); diff --git a/app/src/view/main/main-stats.tsx b/app/src/view/main/main-stats.tsx index af67d188..b1321c3e 100644 --- a/app/src/view/main/main-stats.tsx +++ b/app/src/view/main/main-stats.tsx @@ -67,7 +67,7 @@ function MainStatsInternal({profileId}: {profileId: number}) { }); }, [userProfile]); - console.log('==> leaderboardId', leaderboardId); + // console.log('==> leaderboardId', leaderboardId); const leaderboards = useApi( {}, diff --git a/app/src/view/user.page.tsx b/app/src/view/user.page.tsx index e2c1d993..c9acc2e2 100644 --- a/app/src/view/user.page.tsx +++ b/app/src/view/user.page.tsx @@ -167,7 +167,7 @@ export default function UserPage() { // When visiting user page with only profileId / steamId const completeUserIdInfo = async () => { - console.log('completeUserIdInfo'); + // console.log('completeUserIdInfo'); const loadedProfile = await fetchProfile({profile_id: profileId}); if (loadedProfile) { @@ -178,7 +178,7 @@ export default function UserPage() { // set(state.cache, ['profile', profileId, 'name'], loadedProfile.profiles[0].name); // }); } - console.log(loadedProfile); + // console.log(loadedProfile); // if (!loadedProfile?.steamId) { // setHasSteamId(false);