From d026c99361de3205477799980e8c90a72eb60f4d Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Thu, 2 Jun 2022 14:40:36 -0400 Subject: [PATCH] Fix TOTP copy action (#2774) Fixes an issue where password copy was sometimes populated with a totp --- apps/browser/src/popup/components/action-buttons.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/browser/src/popup/components/action-buttons.component.ts b/apps/browser/src/popup/components/action-buttons.component.ts index 896e8b82ba..8568e0b4ff 100644 --- a/apps/browser/src/popup/components/action-buttons.component.ts +++ b/apps/browser/src/popup/components/action-buttons.component.ts @@ -52,7 +52,7 @@ export class ActionButtonsComponent { if (value == null || (aType === "TOTP" && !this.displayTotpCopyButton(cipher))) { return; - } else if (value === cipher.login.totp) { + } else if (aType === "TOTP") { value = await this.totpService.getCode(value); }