Skip to content

Commit

Permalink
Added missing boolean to saveDiff and saveDiffAndApply
Browse files Browse the repository at this point in the history
  • Loading branch information
NullScope committed Jan 7, 2025
1 parent 33ff4cf commit e9ee5cf
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}, []);

Expand Down Expand Up @@ -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;
}, []);

Expand Down

0 comments on commit e9ee5cf

Please sign in to comment.