1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

chore(web): linting (#1152)

This commit is contained in:
Jason Rasmussen 2022-12-21 10:35:59 -05:00 committed by GitHub
parent 14db7a09e3
commit 832692c8af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,8 @@
SettingInputFieldType
} from '../admin-page/settings/setting-input-field.svelte';
type ApiError = AxiosError<{ message: string }>;
export let user: UserResponseDto;
const handleSaveProfile = async () => {
@ -55,10 +57,10 @@
password = '';
newPassword = '';
confirmPassword = '';
} catch (error: AxiosError | any) {
} catch (error) {
console.error('Error [user-profile] [changePassword]', error);
notificationController.show({
message: error?.response?.data?.message || 'Unable to change password',
message: (error as ApiError)?.response?.data?.message || 'Unable to change password',
type: NotificationType.Error
});
}