Skip to content

Commit

Permalink
fix null
Browse files Browse the repository at this point in the history
  • Loading branch information
suddjian committed Oct 21, 2023
1 parent ad957ce commit ec99a97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cookieclickermanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ function analyzeStockMarket(buyPercentile=0.1, sellPercentile=0.3) {
}

function getStockTradeStr(good, amount) {
if (amount == null) {
amount = good.stock;
}
var $ = Beautify(good.val * amount);
var cookies = Beautify(Game.cookiesPsRawHighest * good.val * amount);
return `${Beautify(amount)} ${good.symbol} at $${Beautify(good.val, 2)} for $${$} (${cookies} 🍪)`;
Expand Down

0 comments on commit ec99a97

Please sign in to comment.