Merge pull request #1989 from keepassxreboot/fix/show_totp_error_message

Fix showing TOTP error message
This commit is contained in:
Sami Vänttinen 2023-09-19 13:37:56 +03:00 committed by GitHub
commit 7cc81cf385
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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