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; }