Skip to content

Commit

Permalink
🔨 : 비밀스러운 console을 지움
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongbbn committed Nov 25, 2021
1 parent cb1a1d1 commit 75865b8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion back-end/api-server/routes/gameRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const GameRecordRouter = express.Router();

GameRecordRouter.post('/', async (req, res, next) => {
const { game, players } = req.body;
console.log('hello', req.body);
const insertGameInfoResult = await insertGameInfo(game);
const insertPlayerInfoResult = await insertPlayerInfo(game.game_id, players);
if (insertGameInfoResult && insertPlayerInfoResult) {
Expand Down
3 changes: 0 additions & 3 deletions front-end/src/components/InfiniteScroll/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,8 @@ export default function InfiniteScroll({
const [list, setList] = useState<any>([]);
const [hasMore, setHasMore] = useState(false);

useEffect(() => console.log(hasMore), [hasMore]);

useEffect(() => {
setLoading(true);
console.log(pageNum);
fetch(fetchURL, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
Expand Down
2 changes: 0 additions & 2 deletions front-end/src/pages/RankingPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,13 @@ function RankingPage() {
rankApiTemplate.nickName = inputRef?.current?.value;
syncKeyWithServer(rankApiTemplate, categoryButtonState, modeButtonState);
const res = await fetchGetRank(rankApiTemplate);
console.log(res.data, 'hihi');
setPlayers(res.data);
};

useEffect(() => {
(async function effect() {
syncKeyWithServer(rankApiTemplate, categoryButtonState, modeButtonState);
const res = await fetchGetRank(rankApiTemplate);
console.log(res.data, 'byeye');
setPlayers(res.data);
})();
}, [categoryButtonState, modeButtonState]);
Expand Down

0 comments on commit 75865b8

Please sign in to comment.