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 4795812b60
commit c12789376d
18 changed files with 87 additions and 109 deletions

View File

@@ -35,8 +35,7 @@ async function deleteUser() {
} 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.';
}