ianbenjohn / Project-1

1 stars 2 forks source link

Clicking search button with an empty search field adds an empty string to the search history array #25

Closed maxlemieux closed 4 years ago

maxlemieux commented 4 years ago

What's happening: Clicking search button with an empty search field adds an empty string to the search history array

What should happen: Clicking search button with an empty search field should do nothing

maxlemieux commented 4 years ago

Fixed by changing equivalence test to exist/length test for newSearchTerm