diff --git a/packages/desktop-client/src/components/transactions/TransactionList.jsx b/packages/desktop-client/src/components/transactions/TransactionList.jsx index 9088f4100c1..17307d4a8dc 100644 --- a/packages/desktop-client/src/components/transactions/TransactionList.jsx +++ b/packages/desktop-client/src/components/transactions/TransactionList.jsx @@ -113,7 +113,7 @@ export function TransactionList({ const onAdd = useCallback(async newTransactions => { newTransactions = realizeTempTransactions(newTransactions); - await saveDiff({ added: newTransactions }); + await saveDiff({ added: newTransactions }, isLearnCategoriesEnabled); onRefetch(); }, []); @@ -144,14 +144,14 @@ export function TransactionList({ const onAddSplit = useCallback(id => { const changes = addSplitTransaction(transactionsLatest.current, id); onChange(changes.newTransaction, changes.data); - saveDiffAndApply(changes.diff, changes, onChange); + saveDiffAndApply(changes.diff, changes, onChange, isLearnCategoriesEnabled); return changes.diff.added[0].id; }, []); const onSplit = useCallback(id => { const changes = splitTransaction(transactionsLatest.current, id); onChange(changes.newTransaction, changes.data); - saveDiffAndApply(changes.diff, changes, onChange); + saveDiffAndApply(changes.diff, changes, onChange, isLearnCategoriesEnabled); return changes.diff.added[0].id; }, []);