Skip to content

Commit

Permalink
fix nav bar not showing on initial registration
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoalzate committed Jun 21, 2024
1 parent 0122889 commit 00fc497
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/berlin/src/pages/Register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,12 @@ function RegisterForm(props: {
queryKey: ['registrations', body.id, 'registration-data'],
});

// invalidate user registrations, this is for the 1 event use case
// where the authentication is because you are approved to the event
await queryClient.invalidateQueries({
queryKey: [props.user?.id, 'registrations'],
});

props.onRegistrationFormCreate?.(body.id);

redirectToNextPage(body.status === 'APPROVED');
Expand Down

0 comments on commit 00fc497

Please sign in to comment.