fix: search button and refactor wind direction icon slightly

This commit is contained in:
David Ralph
2021-05-08 10:58:17 +01:00
parent 7327382497
commit b1fbaa7601
3 changed files with 6 additions and 8 deletions

View File

@@ -48,8 +48,8 @@ export default class Search extends React.PureComponent {
searchButton = (e) => {
let value;
if (e) {
value = e;
if (e.target.innerText !== undefined) {
value = e.target.innerText;
} else {
value = document.getElementById('searchtext').value || 'mue fast';
}