I’m having some difficulty tracking down a bug in my Local Weather App. When I open the app in Firefox or Edge (Chrome wont play fair with the geolocation feature) the location will auto populate the location from the geolocation object in the browser. I implemented a feature that allows a person to type in a zip code and press a button to display the weather for that zip code. However if you use this feature, and after the weather is displayed, press either the C button to convert the temp to celsius, or the M button to display the barometric pressure in millibars, nothing happens. What I have found is that if you enter that same zip code a second time, then the two buttons will work. Not sure what the problem is, although I suspect it resides somewhere in my toggle button click events. Any help would be greatly appreciated. Thanks!
My app is at http://codepen.io/kvk807/pen/oLOrkj/