Skip to content

Commit

Permalink
fix(fe): change fetcher type to safeFetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
jihorobert committed Aug 26, 2024
1 parent 48b89b1 commit 7ad0e00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/frontend/app/(main)/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7ad0e00

Please sign in to comment.