|
@@ -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]}`
|
|
|
}
|
|
|
}
|