Fix showing TOTP error message

This commit is contained in:
varjolintu 2023-09-19 11:22:35 +03:00
parent 65ad31d30f
commit 145ef00205

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