From 7ad0e00e3aa55b5135a77efee1e571b7ecb82fb6 Mon Sep 17 00:00:00 2001 From: jiho Date: Mon, 26 Aug 2024 14:10:40 +0900 Subject: [PATCH] fix(fe): change fetcher type to safeFetcher --- apps/frontend/app/(main)/settings/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/frontend/app/(main)/settings/page.tsx b/apps/frontend/app/(main)/settings/page.tsx index 84f032910d..00a6a342b8 100644 --- a/apps/frontend/app/(main)/settings/page.tsx +++ b/apps/frontend/app/(main)/settings/page.tsx @@ -17,7 +17,7 @@ import { } from '@/components/ui/popover' import { ScrollArea } from '@/components/ui/scroll-area' import { majors } from '@/lib/constants' -import { cn, safeFetcherWithAuth } from '@/lib/utils' +import { cn, safeFetcher, safeFetcherWithAuth } from '@/lib/utils' import invisible from '@/public/24_invisible.svg' import visible from '@/public/24_visible.svg' import codedangSymbol from '@/public/codedang-editor.svg' @@ -282,7 +282,7 @@ export default function Page() { const checkPassword = async () => { setIsCheckButtonClicked(true) try { - const response = await safeFetcherWithAuth.post('auth/login', { + const response = await safeFetcher.post('auth/login', { json: { username: defaultProfileValues.username, password: currentPassword