Преглед изворни кода

Renamed Variable for Brevity

Savio Fernando пре 1 година
родитељ
комит
d0a0c93e5c
1 измењених фајлова са 3 додато и 2 уклоњено
  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]}`
                 }
             }