Skip to content

Commit ec79054

Browse files
committed
hotfix: useSearchParams 객체 구조 분해 및 기타 console 제거
1 parent 070f5f7 commit ec79054

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

src/api/api.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,3 @@ const client = createClient<paths>({
66
});
77

88
const { data, response } = await client.GET('/users');
9-
10-
console.log(data, 'data');

src/app/api/auth/route.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ export async function PUT(request: NextRequest) {
7878
export async function DELETE(request: NextRequest) {
7979
const refreshToken = cookies().get('rtk')?.value;
8080
const accessToken = cookies().get('atk')?.value;
81-
console.log(accessToken, '어 뜨잖아?');
8281

8382
if (!refreshToken) {
8483
return NextResponse.json({ error: 'Not authenticated' }, { status: 401 });

src/components/common/quiz-result/QuizResultBarChart.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ export const QuizResultBarChart: React.FC<QuizResultBarChartProps> = ({ chartDat
7070
}
7171
}, [onObserve]);
7272

73-
console.log(chartData);
7473
return (
7574
<div className="flex h-80 w-full">
7675
<div

src/components/screens/quiz/QuizSwiper.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ interface QuizSwiperProps {
1515
const QuizSwiper: FC<QuizSwiperProps> = ({ count }) => {
1616
const quizListService = QuizListService.getInstance();
1717
const { replace } = useRouter();
18-
const { get } = useSearchParams();
19-
const difficulty = get('difficulty') as QuizTestLevel;
18+
const searchParams = useSearchParams();
19+
const difficulty = searchParams.get('difficulty') as QuizTestLevel;
2020

2121
const quizList = getRandomQuizList({ difficulty });
2222

0 commit comments

Comments
 (0)