Skip to content

Commit

Permalink
Fix: Fixed save warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyah committed May 26, 2026
1 parent 2e2a8c6 commit dd7cf02
Showing 1 changed file with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,27 @@ private void handleUploadSave() {
if (uploadedSave == null) {
showAlert(AlertType.WARNING,
"No saves found",
"Den valgte filen inneholdt ingen gyldig save.\n\n"
+ "Forventet JSON-format:\n"
"The chosen file includes an unsupported format!\n\n"
+ "Expected JSON format:\n"
+ " {\n"
+ " \"name\": \"MySave\",\n"
+ " \"balance\": 10000.00,\n"
+ " \"startingCapital\": 10000.00,\n"
+ " \"stockDataPath\": null\n"
+ " \"week\": 1\n"
+ " \"ownedShares\": [\n"
+ " { \"symbol\": \"AAPL\", \"quantity\": 5, \"purchasePrice\": 150.00 }\n"
+ " ]\n"
+ " \"transactions\": [\n"
+ " { \"type\": \"PURCHASE\", \"symbol\": \"AAPL\", \"quantity\": 5, \"price\": 150.00, \"week\": 1}\n"
+ " ]\n"
+ " \"stocks\": [\n"
+ " { \"symbol\": \"AAPL\", \"companyName\": \"Apple inc.\", \"salesPrice\": 155.25}\n"
+ " ]\n"
+ " \"netWorthHistory\": [\n"
+ " 1001.10,\n"
+ " 1025.24,\n"
+ " ]\n"
+ " }");
return;
}
Expand Down

0 comments on commit dd7cf02

Please sign in to comment.