Skip to content

Commit

Permalink
Calculate windchill at any temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
nicinabox committed Dec 11, 2016
1 parent e60a77a commit 3865d72
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/App.js
Expand Up @@ -57,7 +57,11 @@ export default class App extends Component {

_calculateWindChill() {
let { temp, speed, units } = this.state
return windchill[units](temp, speed) || temp
speed = speed >= BOUNDS[units].speed.min
? speed
: BOUNDS[units].speed.min

return windchill[units](temp, speed, false)
}

_handleTemperatureChange(temp) {
Expand Down

0 comments on commit 3865d72

Please sign in to comment.