Skip to content

Commit

Permalink
🎉 에러 핸들링 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
oaoong committed Nov 2, 2023
1 parent 06fab58 commit e72b02e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/app/(root)/(routes)/(home)/components/TestBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ import React, { useEffect } from 'react'
import { getTest } from '@/services/test/test'

async function getTestValue() {
const res = await getTest()
const data = await res.json()
return data
try {
const res = await getTest()
const data = await res.json()
return data
} catch (e) {
console.log(e)
}
}

export default async function TestBlock() {
Expand Down

0 comments on commit e72b02e

Please sign in to comment.