Skip to content

Commit ae50bbd

Browse files
committed
feat: pass current user in start session page
1 parent bee852d commit ae50bbd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/web/src/routes/_app/session/start-session.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const RouteComponent = () => {
1515
const currentGroup = useAppStore((store) => store.currentGroup);
1616
const currentSession = useAppStore((store) => store.currentSession);
1717
const startSession = useAppStore((store) => store.startSession);
18+
const currentUser = useAppStore((store) => store.currentUser);
1819
const location = useLocation();
1920
const defaultInitialValues = {
2021
sessionType: 'IN_PERSON',
@@ -42,6 +43,7 @@ const RouteComponent = () => {
4243
</PageHeader>
4344
<StartSessionForm
4445
currentGroup={currentGroup}
46+
currentUse={currentUser}
4547
initialValues={initialValues}
4648
readOnly={currentSession !== null || createSessionMutation.isPending}
4749
onSubmit={async (formData) => {

0 commit comments

Comments
 (0)