mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-09-12 14:20:08 +02:00
Update node
This commit is contained in:
@@ -19,9 +19,9 @@ export function AskDayWishes(asks: JSX.Element[], id: number): void {
|
||||
}, [dispatch, id, jwtToken, volunteerAsks?.hiddenAsks])
|
||||
|
||||
const [userWishes] = useUserDayWishes()
|
||||
const participation = get(userWishes, "active", "inconnu")
|
||||
const newSelection = get(userWishes, "dayWishes", [])
|
||||
const comment = get(userWishes, "dayWishesComment", "")
|
||||
const participation = get(userWishes, "active", "inconnu") as string
|
||||
const newSelection = get(userWishes, "dayWishes", []) as string[]
|
||||
const comment = get(userWishes, "dayWishesComment", "") as string
|
||||
const needToShow = participation === "inconnu" || (newSelection.length === 0 && !comment)
|
||||
|
||||
addAsk(
|
||||
|
Reference in New Issue
Block a user