Commit 9133c10d authored by Thomas's avatar Thomas
Browse files

no message

parent fbe5d01c
......@@ -110,7 +110,7 @@ export default function Home({ navigation }) {
const [search, setSearch] = useState('');
const searchFilterFunction = (text) => {
// Check if searched text is not blank
// search function for A-Z
if (selectedIndex == 0) {
if (text) {
// Inserted text is not blank
......@@ -132,6 +132,7 @@ export default function Home({ navigation }) {
setSearch(text);
}
}
// search function for Highest
else if (selectedIndex == 1) {
if (text) {
// Inserted text is not blank
......@@ -152,6 +153,7 @@ export default function Home({ navigation }) {
setFilteredDataSourceHighest(masterDataSourceHighest);
setSearch(text);
}
// serach function for only sporting brands
} else {
if (text) {
// Inserted text is not blank
......
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