Browse Source

Renamed Variable for Brevity

Savio Fernando 1 year ago
parent
commit
d0a0c93e5c
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/screens/Search/SearchListPage.js

+ 3 - 2
src/screens/Search/SearchListPage.js

@@ -12,6 +12,7 @@ import ThemedTextButton from '../../components/molecules/Buttons/ThemeTextButton
 import fonts from '../../constants/fonts'
 import HorizontalNewsCardVariant from '../../components/molecules/Cards/HorizontalNewsCardVariant'
 
+
 const SearchListPage = props => {
     const {
         navigation,
@@ -152,8 +153,8 @@ const SearchListPage = props => {
     const createFilters = (filterObject) => {
         let filterText = ""
         for (const obj of Object.entries(filterObject)) {
-            for (const category of Object.entries(obj[1])) {
-                if (category[1] === true) {
+            for (const filter of Object.entries(obj[1])) {
+                if (filter[1] === true) {
                     filterText += `&${obj[0]}=${category[0]}`
                 }
             }