fixed my local git server

This commit is contained in:
minecartchris
2026-01-02 02:26:09 -06:00
parent 2aa087ecdd
commit 321277fa56
7 changed files with 638 additions and 40 deletions

View File

@@ -202,7 +202,7 @@ async function buyAll() {
const stockPrice = stocks[stockId - 1]['price'];
// Calculate maximum amount we can buy
const maxAmount = Math.floor(balance / stockPrice);
const maxAmount = Math.min(Math.floor(balance / stockPrice), 999999999999999999);
if (maxAmount <= 0) {
showError('Insufficient funds to buy any shares of this stock');
@@ -248,7 +248,7 @@ async function sellAll() {
const gameStateData = await gameStateResponse.json();
const holdings = gameStateData.holdings;
const amountToSell = holdings[stockId - 1]['amount'];
const amountToSell = Math.min(holdings[stockId - 1]['amount'], 999999999999999999);
if (amountToSell <= 0) {
showError('You do not own any shares of this stock');