fix: categorize transactions on recognized transactions table

This commit is contained in:
Ahmed Bouhuolia
2024-08-05 21:20:11 +02:00
parent f6350d3d61
commit c7a85c4cf8

View File

@@ -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,
);
};