diff --git a/src/pages/Supplier/Card/SupplierBalance.vue b/src/pages/Supplier/Card/SupplierBalance.vue index fcc22f9cb..87eac2abf 100644 --- a/src/pages/Supplier/Card/SupplierBalance.vue +++ b/src/pages/Supplier/Card/SupplierBalance.vue @@ -112,9 +112,8 @@ async function onFetch(data) { function round(value) { return Math.round(value * 100) / 100; } -const onFetchCurrencies = (data) => { - const eur = data.find((currency) => currency.code === 'EUR'); - userParams.value.currencyFk = eur?.id; +const onFetchCurrencies = ([currency]) => { + userParams.value.currencyFk = currency?.id; }; @@ -124,7 +123,7 @@ const onFetchCurrencies = (data) => {