Skip to content

Commit

Permalink
fix: Negative investment values were missing (#1550)
Browse files Browse the repository at this point in the history
  • Loading branch information
NigelBreslaw authored May 7, 2024
1 parent 09f3f3c commit 79a4deb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minifier/next_gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function createMiniDefinition(jsonData: JsonData, uniqueKey: string): ProcessedD
return repeatStringsMap[name].get(s)!;
}

const processedData: ProcessedData = { helpers: {}, items: {}, version: 4, id: uniqueKey };
const processedData: ProcessedData = { helpers: {}, items: {}, version: 5, id: uniqueKey };

const sortedDataKeys = Object.keys(jsonData).sort((a, b) => parseFloat(a) - parseFloat(b));

Expand Down Expand Up @@ -431,7 +431,7 @@ function createMiniDefinition(jsonData: JsonData, uniqueKey: string): ProcessedD
for (const stat of investmentStats) {
const value = stat.value;

if (value > 0) {
if (value) {
const statTypeHash = stat.statTypeHash;
iv[statTypeHash] = value;
}
Expand Down

0 comments on commit 79a4deb

Please sign in to comment.