From f714310681fa430aa84a4121ccca322bd2d6fd8e Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Wed, 30 Oct 2019 13:02:33 +0100 Subject: [PATCH] normalise tag name from search result --- src/page/search/view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/page/search/view.js b/src/page/search/view.js index 1f5a8f4..f1260d5 100644 --- a/src/page/search/view.js +++ b/src/page/search/view.js @@ -142,7 +142,7 @@ class SearchPage extends React.PureComponent { {showTagResult && ( this.handleTagResultPressed(query)}> - #{query} + #{query.toLowerCase()} Explore content for this tag )} @@ -152,7 +152,7 @@ class SearchPage extends React.PureComponent { handleTagResultPressed = tag => { const { navigation } = this.props; - navigation.navigate({ routeName: Constants.DRAWER_ROUTE_TAG, key: `tagPage`, params: { tag } }); + navigation.navigate({ routeName: Constants.DRAWER_ROUTE_TAG, key: `tagPage`, params: { tag: tag.toLowerCase() } }); }; render() {