Skip to content

Commit

Permalink
fix bug in BankApp where clicking on a share would not fully open and…
Browse files Browse the repository at this point in the history
… update stock page
  • Loading branch information
einaskoi committed May 18, 2026
1 parent 57e2099 commit cfc1b7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public StockAppController(
}

/** Navigates to stock detail page. */
private void navigateToStock(final Stock stock) {
public void navigateToStock(final Stock stock) {
currentStock = stock;
stock.getStockGraph().setVisibility(true);
Platform.runLater(stock::updateStockGraph);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private List<Popup> initializeApps(GameController gameController, Path userSelec

bankApp.setOnShareSelected(share -> {
popupsController.show(App.STOCK);
stockApp.showStockPage(share.getStock());
stockAppController.navigateToStock(share.getStock());
});

stockAppController.setOnMarketClosed(this::showMarketClosedWarning);
Expand Down

0 comments on commit cfc1b7e

Please sign in to comment.