Skip to content

Commit

Permalink
Merge pull request #737 from lexicongovernance/main
Browse files Browse the repository at this point in the history
fix initial step bug changing after component mount (#730)
  • Loading branch information
diegoalzate authored Aug 5, 2024
2 parents f958775 + 083d85c commit da46b75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/berlin/src/components/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const HeaderLinks = ({ user }: { user: GetUserResponse }) => {
});

const { data: eventNavLinks } = useQuery({
queryKey: ['eventNavLinks'],
queryKey: ['event', eventId, 'navLinks'],
queryFn: () =>
fetchEventNavLinks({ serverUrl: import.meta.env.VITE_SERVER_URL, eventId: eventId || '' }),
enabled: !!user && !!eventId,
Expand Down
1 change: 1 addition & 0 deletions packages/berlin/src/pages/Register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ const CarouselWrapper = ({

return (
<Carousel
key={defaultStep}
initialStep={defaultStep}
onComplete={async () => {
// query registration to check if it is approved
Expand Down

0 comments on commit da46b75

Please sign in to comment.