mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
PM-11427 Copy Totp Code without space (#10800)
This commit is contained in:
@@ -44,13 +44,16 @@ export class BitTotpCountdownComponent implements OnInit {
|
||||
if (this.totpCode != null) {
|
||||
if (this.totpCode.length > 4) {
|
||||
this.totpCodeFormatted = this.formatTotpCode();
|
||||
this.sendCopyCode.emit(this.totpCodeFormatted);
|
||||
this.sendCopyCode.emit({
|
||||
totpCode: this.totpCode,
|
||||
totpCodeFormatted: this.totpCodeFormatted,
|
||||
});
|
||||
} else {
|
||||
this.totpCodeFormatted = this.totpCode;
|
||||
}
|
||||
} else {
|
||||
this.totpCodeFormatted = null;
|
||||
this.sendCopyCode.emit(this.totpCodeFormatted);
|
||||
this.sendCopyCode.emit({ totpCode: null, totpCodeFormatted: null });
|
||||
this.clearTotp();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user