Skip to content

Commit

Permalink
fix(Dashboard): parameters for download receipt (#10638)
Browse files Browse the repository at this point in the history
  • Loading branch information
Betree committed Sep 5, 2024
1 parent c8faca4 commit 24db73c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/dashboard/sections/transactions/actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ export function useTransactionActions<T extends TransactionsTableQueryNode>({
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();
};
Expand Down

0 comments on commit 24db73c

Please sign in to comment.