fix(account): fix type error

pull/2927/head
mehmet-erim 5 years ago
parent 2d97e89cd0
commit 724896383d

@ -24,7 +24,7 @@ export class ChangePasswordComponent
inProgress: boolean;
mapErrorsFn: Validation.MapErrorsFn = (errors, groupErrors, control) => {
if (PASSWORD_FIELDS.indexOf(control.name) < 0) return errors;
if (PASSWORD_FIELDS.indexOf(String(control.name)) < 0) return errors;
return errors.concat(groupErrors.filter(({ key }) => key === 'passwordMismatch'));
};

Loading…
Cancel
Save