@@ -214,24 +214,24 @@ function clearStepsAfterCursor(fieldsets, state) {
214214 } ) ;
215215}
216216
217- // function to render "license recommendation",
217+ // function to render "tool recommendation",
218218// if valid tool from state.parts and/or state.current
219- function renderLicenseRec ( state ) {
220- // document.querySelector('#license -recommendation header h3').textContent = state.props.tool;
219+ function renderToolRec ( state ) {
220+ // document.querySelector('#tool -recommendation header h3').textContent = state.props.tool;
221221
222222 if ( state . props . tool != 'unknown' ) {
223- document . querySelector ( '#license -recommendation' ) . classList . remove ( 'disable' ) ;
223+ document . querySelector ( '#tool -recommendation' ) . classList . remove ( 'disable' ) ;
224224
225225 let tool = state . props . tool ;
226226 let template = document . getElementById ( tool ) ;
227227 let templateContent = template . content . cloneNode ( true ) ;
228- document . querySelector ( '#license -recommendation .tool' ) . textContent = '' ;
229- document . querySelector ( '#license -recommendation .tool' ) . appendChild ( templateContent ) ;
228+ document . querySelector ( '#tool -recommendation .tool' ) . textContent = '' ;
229+ document . querySelector ( '#tool -recommendation .tool' ) . appendChild ( templateContent ) ;
230230 console . log ( 'tool set to: ' + tool ) ;
231231 }
232232 else if ( state . props . tool == 'unknown' ) {
233- document . querySelector ( '#license -recommendation' ) . classList . add ( 'disable' ) ;
234- document . querySelector ( '#license -recommendation .tool' ) . textContent = '' ;
233+ document . querySelector ( '#tool -recommendation' ) . classList . add ( 'disable' ) ;
234+ document . querySelector ( '#tool -recommendation .tool' ) . textContent = '' ;
235235 }
236236}
237237
@@ -405,7 +405,7 @@ function watchFieldsets(fieldsets, state) {
405405
406406 renderSteps ( applyDefaults , state ) ;
407407
408- renderLicenseRec ( state ) ;
408+ renderToolRec ( state ) ;
409409
410410 renderMarkYourWork ( state ) ;
411411
0 commit comments