Skip to content

Commit

Permalink
basics: Fix defaults so it doesn't crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosuav committed May 6, 2024
1 parent 0f8e740 commit b548fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basics.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import {lindt, replace_content, DOM} from "https://rosuav.github.io/choc/factory.js";
const {BUTTON, INPUT, TABLE, TD, TH, TR} = lindt;
const lbls = ["Idl", "Reg", "Str", "Par", "Pier", "Ult"];
const {values = [0, 0, 0, 0, 0, 0], nexts = [0, 0, 0, 0, 0, 0]} = JSON.parse(localStorage.getItem("state"));
const {values = [2500, 15000, 30000, 0, 0, 0], nexts = [0, 0, 0, 0, 0, 0]} = JSON.parse(localStorage.getItem("state")) || {};
function render() {
replace_content("main", TABLE([
TR([TH(""), TH("Now"), TH("Next"), TH("Sum")]),
Expand Down

0 comments on commit b548fa4

Please sign in to comment.