Skip to content

Commit 6a53580

Browse files
authored
Merge pull request #68 from CS3219-AY2425S1/wheatgrassmc/disable-console-logs-d2
Remove console logs
2 parents 26a4fee + 2c950ec commit 6a53580

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

frontend/src/api/leetcode-dashboard.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export const getLeetcodeDashboardData = async (): Promise<
3434
const url = `${QUESTION_SERVICE}/all`;
3535
const response = await fetch(url);
3636
const data = await response.json();
37-
// console.log(data);
3837
return data;
3938
};
4039

@@ -44,7 +43,6 @@ export const fetchSingleLeetcodeQuestion = async (
4443
const url = `${QUESTION_SERVICE}/${questionId}`;
4544
const response = await fetch(url);
4645
const data = await response.json();
47-
// console.log(data);
4846
return data;
4947
};
5048

frontend/src/api/user.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { User } from "@/types/user";
22

3-
export const setGetProfile = async (access_token: string, user: User): Promise<User> => {
3+
export const setGetProfile = async (
4+
access_token: string,
5+
user: User
6+
): Promise<User> => {
47
const username = user.username;
58
const bio = user.bio;
69
const linkedin = user.linkedin;
@@ -22,13 +25,12 @@ export const setGetProfile = async (access_token: string, user: User): Promise<U
2225
github,
2326
}),
2427
});
25-
console.log(response.json());
2628

2729
// return response.json();
2830
return {
2931
username: "Hong Shan",
3032
bio: "I live in Redhill",
3133
linkedin: "www.linkedin.com/in/hongshan",
3234
github: "www.github.com/hongshan",
33-
}
34-
}
35+
};
36+
};

frontend/src/app/(auth)/leetcode-dashboard/EditQuestionDialog.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ const EditQuestionDialog = ({ questionId }: EditQuestionDialogProp) => {
8484
}, [questionId, reset]);
8585

8686
async function onSubmit(values: z.infer<typeof formSchema>) {
87-
console.log(values);
8887
setIsSubmitting(true);
8988
updateSingleLeetcodeQuestion({
9089
title: values.questionTitle,
@@ -170,7 +169,6 @@ const EditQuestionDialog = ({ questionId }: EditQuestionDialogProp) => {
170169
control={form.control}
171170
name="questionTopics"
172171
render={({ field }) => {
173-
console.log(field);
174172
return (
175173
<FormItem>
176174
<FormLabel className="text-primary-500">Topics</FormLabel>

0 commit comments

Comments
 (0)