Fixed homepage filters setting, names, and userId category

This commit is contained in:
2023-07-30 14:52:23 +03:00
parent 8b6010f453
commit 466977d457
4 changed files with 25 additions and 10 deletions

View File

@ -1,4 +1,5 @@
import { Announcement } from '../api/announcement/types'
import { getId } from '../utils/auth'
import { FiltersType } from '../utils/filters'
const userCategories = ['givingOut'] as const
@ -17,7 +18,7 @@ const userCategoriesInfos: Record<UserCategory, (ann: Announcement) => string> =
const composeUserCategoriesFilters: Record<UserCategory, () => FiltersType> = {
givingOut: () => {
const userId = -1
const userId = getId()
return ({ userId })
},