Skip to content

Commit

Permalink
Remove unused log
Browse files Browse the repository at this point in the history
  • Loading branch information
beming-dev committed Jan 11, 2025
1 parent 9efca1f commit a50e0ef
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion constants/system.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export const WEB_URL = "https://studyabout.herokuapp.com";
export const SERVER_URI = process.env.NEXT_PUBLIC_SERVER_URI;
console.log("hello", SERVER_URI);
export const DEFAULT_BACK_URL = "/home";
1 change: 0 additions & 1 deletion pageTemplates/home/HomeGroupSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ interface HomeGroupSectionProps {
}

function HomeGroupSection({ groups }: HomeGroupSectionProps) {
console.log(2, groups);
return (
<>
<Box my={5}>
Expand Down
1 change: 0 additions & 1 deletion pageTemplates/vote/VoteDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ function VoteDrawer({
location,
false,
);
console.log(24, convertMergeParticipations);
setMergeParticipations(convertMergeParticipations);
const findMyStudy = convertMergeParticipations.find(
(par) => par.place._id === myStudyParticipation?.place._id,
Expand Down
3 changes: 1 addition & 2 deletions pages/api/token/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)

switch (method) {
case "GET": {
const jwt = await getToken({ req, secret, raw: true });
console.log(jwt);
const jwt = await getToken({ req, secret, raw: true }) console.log(jwt);
res.status(200).json(jwt);
break;
}
Expand Down
6 changes: 0 additions & 6 deletions pages/group/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ function GroupPage() {
enabled: !!status,
},
);
console.log(groups);
useEffect(() => {
return () => {
const localStorageCursorNumChange = !localStorageCursorNum
Expand All @@ -110,7 +109,6 @@ function GroupPage() {
});

if (!searchParams.get("filter")) {
console.log(24);
newSearchParams.append("filter", "pending");
newSearchParams.append("category", "0");
router.replace(`/group?${newSearchParams.toString()}`);
Expand Down Expand Up @@ -143,7 +141,6 @@ function GroupPage() {
}, []);

useEffect(() => {
console.log(1, status);
newSearchParams.set("filter", statusToEn[status]);
router.replace(`/group?${newSearchParams.toString()}`);
}, [status]);
Expand All @@ -152,16 +149,13 @@ function GroupPage() {
if (!groups) return;
firstLoad.current = false;

console.log(category);
if (category.main === "전체") {
console.log(2, groups);
const newArray = shuffleArray(groups);
setGroupStudies((old) => [
...newArray.filter((item) => !old.some((existingItem) => existingItem.id === item.id)),
...old,
]);
} else {
console.log(43);
setGroupStudies(groups.filter((item) => !category.sub || item.category.sub === category.sub));
}
}, [groups, category.main, category.sub]);
Expand Down

0 comments on commit a50e0ef

Please sign in to comment.