mirror of
https://github.com/bitwarden/web
synced 2025-12-10 21:33:16 +00:00
Fix context copy buttons work only with TOTP present (#794)
This commit is contained in:
@@ -125,7 +125,7 @@ export class CiphersComponent extends BaseCiphersComponent implements OnDestroy
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user