Skip to content

Commit 381f0d9

Browse files
committed
was invalidating the wrong thing
1 parent 0b8e7e2 commit 381f0d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/frontend/src/features/rsvp/hooks/useEditUserRSVP.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function useEditUserRSVP() {
88
return useMutation<Rsvp, ApiError, { rsvpId: string; rsvp: UpdateRsvpDto }>({
99
mutationFn: ({ rsvpId: rsvpId, rsvp }) => api.rsvp.editRsvp(rsvpId, rsvp),
1010
onSuccess: (data, { rsvpId: eventId }) => {
11-
queryClient.invalidateQueries(rsvpKeys.event(eventId));
11+
queryClient.invalidateQueries(rsvpKeys.event(data.eventId));
1212
// queryClient.invalidateQueries(["EventRSVP", eventId]);
1313
},
1414
});

0 commit comments

Comments
 (0)