Fix find method called on undefined object

This commit is contained in:
Bubka 2025-04-07 16:15:05 +02:00
parent df7245403b
commit 83d1394afa

View File

@ -196,7 +196,7 @@
copyToClipboard(otp.password)
if (otp.otp_type == 'hotp') {
let hotpToIncrement = accounts.value.find((acc) => acc.id == account.id)
let hotpToIncrement = twofaccounts.items.find((acc) => acc.id == account.id)
// TODO : à koi ça sert ?
if (hotpToIncrement != undefined) {