Skip to content

Commit

Permalink
mehr Nanas
Browse files Browse the repository at this point in the history
  • Loading branch information
RincewindWizzard committed Oct 27, 2023
1 parent 71bf4ca commit 9daeb9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/calculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ function get_state() {

function set_state(state) {
for(let tshirt of t_shirts) {
tshirt.input.value = state[tshirt.name]
tshirt.input.value = state[tshirt.name] || 0
}
input_capacity.value = state.capacity
input_threshold.value = state.threshold
input_capacity.value = state.capacity || 0
input_threshold.value = state.threshold || 0
return state
}

Expand Down

0 comments on commit 9daeb9b

Please sign in to comment.