1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-22 11:45:59 +01:00

Fix TOTP copy action (#2774)

Fixes an issue where password copy was sometimes populated with a totp
This commit is contained in:
Matt Gibson 2022-06-02 14:40:36 -04:00 committed by GitHub
parent 8896cf0dc0
commit d026c99361
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ export class ActionButtonsComponent {
if (value == null || (aType === "TOTP" && !this.displayTotpCopyButton(cipher))) {
return;
} else if (value === cipher.login.totp) {
} else if (aType === "TOTP") {
value = await this.totpService.getCode(value);
}