From c7a85c4cf879a5099d86bf3ad0b41e1b923ef883 Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Mon, 5 Aug 2024 21:20:11 +0200 Subject: [PATCH] fix: categorize transactions on recognized transactions table --- .../RecognizedTransactionsTable.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/webapp/src/containers/CashFlow/AccountTransactions/RecognizedTransactions/RecognizedTransactionsTable.tsx b/packages/webapp/src/containers/CashFlow/AccountTransactions/RecognizedTransactions/RecognizedTransactionsTable.tsx index bfdf90d2e..979e65092 100644 --- a/packages/webapp/src/containers/CashFlow/AccountTransactions/RecognizedTransactions/RecognizedTransactionsTable.tsx +++ b/packages/webapp/src/containers/CashFlow/AccountTransactions/RecognizedTransactions/RecognizedTransactionsTable.tsx @@ -34,8 +34,8 @@ interface RecognizedTransactionsTableProps extends WithBankingActionsProps {} * Renders the recognized account transactions datatable. */ function RecognizedTransactionsTableRoot({ - // #withBanking - setUncategorizedTransactionIdForMatching, + // #withBankingActions + setTransactionsToCategorizeSelected, }: RecognizedTransactionsTableProps) { const { mutateAsync: excludeBankTransaction } = useExcludeUncategorizedTransaction(); @@ -54,7 +54,7 @@ function RecognizedTransactionsTableRoot({ // Handle cell click. const handleCellClick = (cell, event) => { - setUncategorizedTransactionIdForMatching( + setTransactionsToCategorizeSelected( cell.row.original.uncategorized_transaction_id, ); }; @@ -77,7 +77,7 @@ function RecognizedTransactionsTableRoot({ // Handles categorize button click. const handleCategorizeClick = (transaction) => { - setUncategorizedTransactionIdForMatching( + setTransactionsToCategorizeSelected( transaction.uncategorized_transaction_id, ); };