Skip to content

Commit

Permalink
default
Browse files Browse the repository at this point in the history
  • Loading branch information
RincewindWizzard committed Oct 27, 2023
1 parent 9daeb9b commit ff9ad88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/js/calculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import "./t_shirt_inputs_ui"
import {t_shirt_sizes} from "./t_shirt_table.js"
import query_string from 'query-string';

const default_threshold = 75

const t_shirts = t_shirt_sizes
.map((t_shirt) => {
let new_shirt = {
Expand Down Expand Up @@ -68,8 +70,7 @@ function set_state(state) {
tshirt.input.value = state[tshirt.name] || 0
}
input_capacity.value = state.capacity || 0
input_threshold.value = state.threshold || 0
return state
input_threshold.value = state.threshold || default_threshold
}

window.addEventListener('DOMContentLoaded', (event) => {
Expand Down

0 comments on commit ff9ad88

Please sign in to comment.