Skip to content

Commit

Permalink
fix(password-converter): display correct number of dots for passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximBalaganskiy committed Dec 3, 2018
1 parent a0aa282 commit ce02ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/converters/password.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export class PasswordValueConverter {
toView(value: string, isPassword: boolean): string {
return isPassword ? (value.length ? Array(value.length).join("•") : "") : value;
return isPassword ? (value.length ? Array(value.length + 1).join("•") : "") : value;
}

fromView(value: string): number {
Expand Down

0 comments on commit ce02ed3

Please sign in to comment.