From 724896383d5866d047f194612c881f7441a6d6dc Mon Sep 17 00:00:00 2001 From: mehmet-erim Date: Tue, 25 Feb 2020 12:29:25 +0300 Subject: [PATCH] fix(account): fix type error --- .../lib/components/change-password/change-password.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm/ng-packs/packages/account/src/lib/components/change-password/change-password.component.ts b/npm/ng-packs/packages/account/src/lib/components/change-password/change-password.component.ts index 87169a2c1f..14ed582d95 100644 --- a/npm/ng-packs/packages/account/src/lib/components/change-password/change-password.component.ts +++ b/npm/ng-packs/packages/account/src/lib/components/change-password/change-password.component.ts @@ -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')); };