dispay message in searchcard
This commit is contained in:
@@ -29,9 +29,7 @@ export const AuthProvider = ({ children }: { children: React.ReactNode }) => {
|
||||
if (!response.ok) {
|
||||
const errorText = await response.text()
|
||||
console.error('Error response:', errorText)
|
||||
throw new Error(
|
||||
`Error fetching user data: ${response.status} ${errorText}`
|
||||
)
|
||||
throw new Error(`Error fetching user data: ${response.status} ${errorText}`)
|
||||
}
|
||||
|
||||
const userData = await response.json()
|
||||
|
||||
Reference in New Issue
Block a user