forked from polka_billy/porridger
Fixed homepage filters setting, names, and userId category
This commit is contained in:
@ -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 })
|
||||
},
|
||||
|
Reference in New Issue
Block a user