diff --git a/lib/utils/invoiceExport/getInvoiceExportData.js b/lib/utils/invoiceExport/getInvoiceExportData.js index bbeeff3f..48579921 100644 --- a/lib/utils/invoiceExport/getInvoiceExportData.js +++ b/lib/utils/invoiceExport/getInvoiceExportData.js @@ -84,7 +84,9 @@ export const getInvoiceExportData = async ({ ky, intl, query, currency: to }) => const allExchangeRates = await Promise.allSettled( currencies.map(from => ky.get(EXCHANGE_RATE_API, { searchParams: { from, to } }).json()), ); - const exchangeRates = allExchangeRates.filter(({ status }) => status === 'fulfilled'); + const exchangeRates = allExchangeRates + .filter(({ status }) => status === 'fulfilled') + .map(({ value }) => value); return (createInvoiceExportReport({ acqUnitMap: keyBy(acqUnits, 'id'),