1
0
mirror of https://github.com/bitwarden/browser synced 2025-01-21 08:47:52 +01:00

Fix action buttons not working when TOTP is not available

This commit is contained in:
Hinton 2021-01-08 15:48:48 +01:00
parent 76a31d089a
commit b1e376ce66

View File

@ -57,7 +57,7 @@ export class ActionButtonsComponent {
} }
async copy(cipher: CipherView, value: string, typeI18nKey: string, aType: string) { 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; return;
} else if (value === cipher.login.totp) { } else if (value === cipher.login.totp) {
value = await this.totpService.getCode(value); value = await this.totpService.getCode(value);