dispay message in searchcard

This commit is contained in:
2025-05-21 16:31:09 +03:00
parent c4e1e16e79
commit c6c405f232
15 changed files with 712 additions and 148 deletions

View File

@@ -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()