fix type error and adapt formatting to new prettier version changes

This commit is contained in:
Gregor Vostrak
2026-08-31 13:56:18 +02:00
parent 0b307c8bc9
commit 875328c32c
18 changed files with 87 additions and 109 deletions

View File

@@ -38,8 +38,7 @@ const deleteTeam = async () => {
} catch (error) {
if (error && typeof error === 'object' && 'response' in error) {
const response = error.response as
| { status?: number; data?: { errors?: { password?: string[] } } }
| undefined;
{ status?: number; data?: { errors?: { password?: string[] } } } | undefined;
if (response?.status === 422) {
passwordError.value = response.data?.errors?.password?.[0] ?? 'Invalid password.';
}