From 99c80828663a0c73b014e6ecb95a65dddcda64c0 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Wed, 20 Jan 2021 15:15:19 -0600 Subject: [PATCH] Fix context copy buttons work only with TOTP present (#794) --- src/app/vault/ciphers.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/vault/ciphers.component.ts b/src/app/vault/ciphers.component.ts index 3f4d3215f1..887ce7dc1b 100644 --- a/src/app/vault/ciphers.component.ts +++ b/src/app/vault/ciphers.component.ts @@ -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);