From 24db73cf051165de4ec702eaf5db6908ec3208b0 Mon Sep 17 00:00:00 2001 From: Benjamin Piouffle Date: Thu, 5 Sep 2024 08:39:43 +0200 Subject: [PATCH] fix(Dashboard): parameters for download receipt (#10638) --- components/dashboard/sections/transactions/actions.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/dashboard/sections/transactions/actions.tsx b/components/dashboard/sections/transactions/actions.tsx index 65a82dc49fc..db9b9c87872 100644 --- a/components/dashboard/sections/transactions/actions.tsx +++ b/components/dashboard/sections/transactions/actions.tsx @@ -80,7 +80,8 @@ export function useTransactionActions({ const handleDownloadInvoice = async () => { const params = transaction.expense?.id ? { expenseId: transaction.expense.id } - : { transactionUuid: transaction.uuid, toCollectiveSlug: transaction.toAccount?.slug }; + : { transactionUuid: transaction.id }; + const download = downloadInvoiceWith(params); return download(); };