diff --git a/src/components/common/VnInputBic.vue b/src/components/common/VnInputBic.vue index 5f0afd083..b29644912 100644 --- a/src/components/common/VnInputBic.vue +++ b/src/components/common/VnInputBic.vue @@ -20,12 +20,12 @@ const autofillBic = async (iban) => { if (ibanCountry != 'ES') return; - const filter = { where: { id: bankEntityId.value } }; + const filter = { where: { id: bankEntityId } }; const params = { filter: JSON.stringify(filter) }; const { data } = await axios.get(`BankEntities`, { params }); - emit('updateBic', data[0].id); + emit('updateBic', data[0]?.id); };