Commit 32acc6e6 authored by Andrew Hrdy's avatar Andrew Hrdy

Fixed error with sort by location friendly name. Closes #36

parent 166fa885
Pipeline #2156 passed with stages
in 1 minute and 47 seconds
# 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
......@@ -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 (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment