js/main.js
// updates Culture and Values select tags to match user's choice
updates Culture and Values select tags to match user's choice
updates Culture and Values select tags to match user ' s choice
function synchronizeSelectInputs() {
  let state = store.getState();
  let curr_culture_keys = Object.keys(cultures[state.culture]);
  select_first_value.selectedIndex = curr_culture_keys.indexOf(state.first_value);
  select_second_value.selectedIndex = curr_culture_keys.indexOf(state.second_value);
  select_culture.selectedIndex = cultures_list.indexOf(store.getState().culture);
}
function synchronizeSelectInputs ( ) { let state = store . getState ( ) ; let curr_culture_keys = Object . keys ( cultures [ state . culture ] ) ; select_first_value . selectedIndex = curr_culture_keys . indexOf ( state . first_value ) ; select_second_value . selectedIndex = curr_culture_keys . indexOf ( state . second_value ) ; select_culture . selectedIndex = cultures_list . indexOf ( store . getState ( ) . culture ) ; }
updates Culture and Values select tags to match user's choice
updates Culture and Values select tags to match user ' s choice