1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

Merge pull request #1525 from bitwarden/hotfix/action-buttons

Fix action buttons not working when TOTP is not available
This commit is contained in:
Oscar Hinton
2021-01-11 16:28:00 +01:00
committed by GitHub

View File

@@ -57,7 +57,7 @@ export class ActionButtonsComponent {
}
async copy(cipher: CipherView, value: string, typeI18nKey: string, aType: string) {
if (value == null || !this.displayTotpCopyButton(cipher)) {
if (value == null || aType === 'TOTP' && !this.displayTotpCopyButton(cipher)) {
return;
} else if (value === cipher.login.totp) {
value = await this.totpService.getCode(value);