hata düzeltme 2

This commit is contained in:
2026-01-13 22:57:39 +03:00
parent 8eae770349
commit 6bbae0de21
8 changed files with 21 additions and 14 deletions

View File

@@ -69,8 +69,8 @@ export async function deleteUser(userId: string) {
// Check admin
try {
await assertAdmin()
} catch (error: any) {
return { error: error.message }
} catch (error) {
return { error: (error as Error).message }
}
// Delete user
@@ -87,8 +87,8 @@ export async function updateUser(userId: string, data: { firstName: string, last
// Check admin
try {
await assertAdmin()
} catch (error: any) {
return { error: error.message }
} catch (error) {
return { error: (error as Error).message }
}
// 1. Update Profile (Role and Name)

View File

@@ -39,7 +39,7 @@ export default function SignUpPage() {
if (data.user) {
setSuccess(true)
}
} catch (err: any) {
} catch {
setError("Bir hata oluştu. Lütfen tekrar deneyin.")
} finally {
setLoading(false)