From 83d1394afab2d3efdfa2e299dd4f3f56fcdc284f Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Mon, 7 Apr 2025 16:15:05 +0200 Subject: [PATCH] Fix find method called on undefined object --- resources/js/views/twofaccounts/Accounts.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/views/twofaccounts/Accounts.vue b/resources/js/views/twofaccounts/Accounts.vue index f145e07f..e940fcb1 100644 --- a/resources/js/views/twofaccounts/Accounts.vue +++ b/resources/js/views/twofaccounts/Accounts.vue @@ -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) {