Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
denniske committed Aug 23, 2023
1 parent c2c2799 commit 5a36257
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/src/api/following.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export async function twitchLive(channel?: string): Promise<ITwitchChannel> {
// } 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: {
Expand Down Expand Up @@ -236,7 +236,7 @@ export interface IDiscordInfo {

export async function discordOnline(serverId: string): Promise<IDiscordInfo> {
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: {
Expand Down
2 changes: 1 addition & 1 deletion app/src/api/helper/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion app/src/hooks/use-lazy-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function useLazyApi<A extends (...args: any) => any>(options: ILazyApiOpt
const load = async (append: boolean, ...args: Parameters<A>) => {
if (!mountedRef.current) return null;

console.log('LOAD', append);
// console.log('LOAD', append);

// Save current request ref
requestRef.current++;
Expand Down
2 changes: 1 addition & 1 deletion app/src/view/main/main-matches.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function MainMatchesInternal({profileId}: {profileId: number}) {
keepPreviousData: true,
});

console.log('data', data);
// console.log('data', data);

const toggleWithMe = () => setWithMe(!withMe);

Expand Down
2 changes: 1 addition & 1 deletion app/src/view/main/main-stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function MainStatsInternal({profileId}: {profileId: number}) {
});
}, [userProfile]);

console.log('==> leaderboardId', leaderboardId);
// console.log('==> leaderboardId', leaderboardId);

const leaderboards = useApi(
{},
Expand Down
4 changes: 2 additions & 2 deletions app/src/view/user.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
Expand Down

0 comments on commit 5a36257

Please sign in to comment.