Skip to content

Commit

Permalink
Keep the account of merged orders
Browse files Browse the repository at this point in the history
  • Loading branch information
r0bertz committed Apr 1, 2019
1 parent c0b4d50 commit 040b3c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/services/books.js
Expand Up @@ -94,6 +94,7 @@ module.factory('rpBooks', ['rpNetwork', '$q', '$rootScope', '$filter',
if (lastprice === price && !d.my && !newData[current].my && combine) {
newData[current].TakerPaysFunded = deprecated.Amount.from_json(newData[current].TakerPaysFunded).add(d.TakerPaysFunded);
newData[current].TakerGetsFunded = deprecated.Amount.from_json(newData[current].TakerGetsFunded).add(d.TakerGetsFunded);
newData[current].Account = newData[current].Account + "\n" + d.Account
d = false;
} else {
current = i;
Expand Down

0 comments on commit 040b3c6

Please sign in to comment.