From 145ef00205abf00310a9bc301eb3370c9fe1c1b7 Mon Sep 17 00:00:00 2001 From: varjolintu Date: Tue, 19 Sep 2023 11:22:35 +0300 Subject: [PATCH] Fix showing TOTP error message --- keepassxc-browser/content/fill.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keepassxc-browser/content/fill.js b/keepassxc-browser/content/fill.js index 2bd0ff8..415d8a9 100644 --- a/keepassxc-browser/content/fill.js +++ b/keepassxc-browser/content/fill.js @@ -115,7 +115,7 @@ kpxcFill.fillFromTOTP = async function(target) { const el = target || document.activeElement; const credentialList = await kpxc.updateTOTPList(); - if (credentialList?.length === 0) { + if (!credentialList || credentialList?.length === 0) { kpxcUI.createNotification('warning', tr('credentialsNoTOTPFound')); return; }