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:
parent
14db7a09e3
commit
832692c8af
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue