diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fceb1f5e1d68fe3728ac24e96deb174a074e61b..fa1f19d63a12a9254c3febefeacf9bdccf6d7c2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [2.1.1] - 2018-02-11 + +### Changed + +- Updated service worker + +### Fixed + +- Fixed searching by location friendly name + ## [2.1.0] - 2018-02-08 ### Added @@ -12,7 +22,7 @@ - Facility cards now sorted by open / closed - Facility card shadowing -- Search now includes friendly name +- Search now includes location friendly name ### Fixed @@ -31,4 +41,5 @@ [2.0.1]: https://git.gmu.edu/srct/whats-open-web/compare/v2.0...v2.0.1 -[2.1.0]: https://git.gmu.edu/srct/whats-open-web/compare/v2.0.1...v2.1-Midnight-Cherry \ No newline at end of file +[2.1.0]: https://git.gmu.edu/srct/whats-open-web/compare/v2.0.1...v2.1-Midnight-Cherry +[2.1.1]: https://git.gmu.edu/srct/whats-open-web/compare/v2.1-Midnight-Cherry...v2.1.1 \ No newline at end of file diff --git a/src/components/CardContainer.js b/src/components/CardContainer.js index a047c7ef5b72d0dc54a28ebd481df5c75df4b20c..41f1f61167a5fb50648010870af42fa0963d8e34 100644 --- a/src/components/CardContainer.js +++ b/src/components/CardContainer.js @@ -26,7 +26,7 @@ const CardContainer = ({searchTerm, campusRegion, facilities}) => { const hasTag = index !== -1; return facilityName.includes(lSearchTerm) || facilityLocation.includes(lSearchTerm) || - facilityCategory.includes(lSearchTerm) || hasTag || facilityLocation.includes(friendlyName); + facilityCategory.includes(lSearchTerm) || hasTag || friendlyName.includes(lSearchTerm); }; return (