Skip to content

Commit

Permalink
chore: remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonassimoen committed Oct 22, 2023
1 parent d642db1 commit 49d2a7e
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ jobs:
chmod 700 ~/.ssh
ssh-keyscan $SERVER_IP >> ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
ssh root@$SERVER_IP 'rm -rf /var/www/html/fantasy.simoen.tech/*'
scp -r build/* root@$SERVER_IP:/var/www/html/fantasy.simoen.tech/
4 changes: 0 additions & 4 deletions src/components/AbstractTeam/AbstractTeam.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,7 @@ export const AbstractTeam = (Component: (props: AbstractTeamType) => any, props:
}
};

useEffect(() => console.log("K:",state.captainId, "VK:",state.viceCaptainId),[state]);
const onCaptainSelect = (player: Player, captainFirstInList?: boolean) => {
console.log("captain selected:",player.id)
const playerId: number = player.id;
let playerIdx: number | null = null;

Expand Down Expand Up @@ -330,7 +328,6 @@ export const AbstractTeam = (Component: (props: AbstractTeamType) => any, props:
};

const onViceCaptainSelect = (player: Player) => {
console.log("vice captain selected:",player.id)
const playerId: number = player.id;
setState({ ...state, viceCaptainId: playerId, captainId: (state.captainId === playerId ? undefined : state.captainId) });
};
Expand Down Expand Up @@ -626,7 +623,6 @@ export const AbstractTeam = (Component: (props: AbstractTeamType) => any, props:
const setActivePositionFilter = (positionId: number) => {
setState({ ...state, activePositionFilter: positionId });
};
useEffect(() => console.log("state in AT", state), [state])


return (
Expand Down
1 change: 0 additions & 1 deletion src/components/Calendar/Calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export const Calendar = (props: CalendarProps) => {
}

const onCalendarWeekChanged = (weekId: number) => {
console.log("weekId", weekId)
setState({ ...state, weekId: weekId });
};

Expand Down
2 changes: 0 additions & 2 deletions src/components/PlayerModal/PlayerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ export const PlayerModal = (props: PlayerModalProps) => {
),
[props]);

console.log(actionColumnSize);

return (
<PlayerModalStyle
title={player.short}
Expand Down
2 changes: 0 additions & 2 deletions src/pages/GameStatsManagement/GameStatsManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ export const GameStatsManagement = (props: GameStatsMangementProps) => {
}, [matchPlayers, stats]);

useEffect(() => {
console.log(form.getFieldsValue());
if (importedStats && matchPlayers) {
const allStats = matchPlayers?.map((p: Player) => {
const playerStat = importedStats?.find((s: Statistic) => s.playerId === p.externalId);
Expand All @@ -128,7 +127,6 @@ export const GameStatsManagement = (props: GameStatsMangementProps) => {
allStats.forEach((p, idx) => statsObj[idx] = p);
setState({ ...state, allEvents: statsObj });
form.setFieldsValue(allStats);
console.log(state.allEvents);
}
}, [importedStats]);

Expand Down
1 change: 0 additions & 1 deletion src/pages/LoginCallback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export const LoginCallback = () => {

useEffect(() => {
if (access_token) {
console.log("received token", access_token);
secureLocalStorage.setItem("token", access_token as string);
getProfile();
getTeams();
Expand Down

0 comments on commit 49d2a7e

Please sign in to comment.