Fix team wish type from string to number

This commit is contained in:
pikiou
2022-02-10 17:47:14 +01:00
parent 6e22136737
commit ddd99ff4bb
7 changed files with 15 additions and 122 deletions

View File

@@ -4,8 +4,9 @@ import useAction from "../../utils/useAction"
import { selectUserJwtToken } from "../../store/auth"
import { AppState } from "../../store"
import { fetchVolunteerTeamWishesSet } from "../../store/volunteerTeamWishesSet"
import { VolunteerTeamWishes } from "../../services/volunteers"
export const useUserTeamWishes = (): [any, any] => {
export const useUserTeamWishes = (): [VolunteerTeamWishes | undefined, any] => {
const save = useAction(fetchVolunteerTeamWishesSet)
const jwtToken = useSelector(selectUserJwtToken)
const userTeamWishes = useSelector(