mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +01: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:
commit
7e41e84c7d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user