1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00: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
});
}