Skip to content

Commit 694a5fa

Browse files
authored
Merge pull request #10 from RxJSInAction/fix-transactions-10_10
Fixing bug in the transaction processor for 10.10
2 parents 17da282 + 859b70c commit 694a5fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/10/10/10_10.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function computeTransaction(tx, doc) {
3636
const newBalance = target + amount * factor;
3737

3838
// Create a new balances object
39-
const newAccounts = Object.assign({}, doc, {[account]: newBalance});
39+
return Object.assign({}, doc, {[account]: newBalance});
4040
// const newAccounts = {...doc, [account]: newBalance};
4141
}
4242

0 commit comments

Comments
 (0)