Skip to content
Permalink
Browse files

Fix consecutive rewards

fixes #403
  • Loading branch information...
Manuel-777 committed Jun 2, 2019
1 parent 217b60a commit b7c7c1adceca49529d1f3c93089f3340d23829e9
Showing with 3 additions and 1 deletion.
  1. +3 −1 window_background/labels.js
@@ -532,7 +532,9 @@ function onLabelInventoryUpdated(entry, transaction) {
//let milliseconds = transaction.date.getTime();
// We use the original time string for the ID to ensure parsing does not alter it
// This will make the ID the same if parsing either changes or breaks
transaction.id = sha1(entry.timestamp + context);
transaction.id = sha1(
entry.timestamp + context + JSON.stringify(transaction.delta)
);

// Do not modify the context from now on.
saveEconomyTransaction(transaction);

0 comments on commit b7c7c1a

Please sign in to comment.
You can’t perform that action at this time.