mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +00:00
Fix TOTP copy action (#2774)
Fixes an issue where password copy was sometimes populated with a totp
This commit is contained in:
@@ -52,7 +52,7 @@ export class ActionButtonsComponent {
|
|||||||
|
|
||||||
if (value == null || (aType === "TOTP" && !this.displayTotpCopyButton(cipher))) {
|
if (value == null || (aType === "TOTP" && !this.displayTotpCopyButton(cipher))) {
|
||||||
return;
|
return;
|
||||||
} else if (value === cipher.login.totp) {
|
} else if (aType === "TOTP") {
|
||||||
value = await this.totpService.getCode(value);
|
value = await this.totpService.getCode(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user