diff --git a/src/converters/password.ts b/src/converters/password.ts index 75e5c9f..e2ed6fe 100644 --- a/src/converters/password.ts +++ b/src/converters/password.ts @@ -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 {