File tree 4 files changed +18
-6
lines changed
app/participant/team-selection
4 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -85,11 +85,11 @@ const CreateTeamPage = () => {
85
85
< li >
86
86
After forming a team, assign < b > ONE</ b > member to{ " " }
87
87
< b > "Register New Team"</ b > using your Team Name.
88
- They will receive a unique < b > 6 -digit Team ID</ b > { " " }
88
+ They will receive a unique < b > 4 -digit Team ID</ b > { " " }
89
89
following registration.
90
90
</ li >
91
91
< li className = { CREATE_TEAM_STEPS_STYLES } >
92
- Next, provide this < b > 6 -digit Team ID</ b > to all team
92
+ Next, provide this < b > 4 -digit Team ID</ b > to all team
93
93
members.
94
94
</ li >
95
95
< li className = { CREATE_TEAM_STEPS_STYLES } >
Original file line number Diff line number Diff line change @@ -97,6 +97,18 @@ export default function PersonalFormFields({ user }: { user: AuthUser }) {
97
97
if ( isError ) {
98
98
return < div > Error, please try again later.</ div > ;
99
99
}
100
+ if ( data ?. teamId && data ?. completedRegistration ) {
101
+ if ( data ?. role === UserType . Admin ) {
102
+ router . push ( "/admin" ) ;
103
+ return null ;
104
+ } else if ( data ?. role === UserType . Judge ) {
105
+ router . push ( "/judging" ) ;
106
+ return null ;
107
+ } else {
108
+ router . push ( "/participant/profile" ) ;
109
+ return null ;
110
+ }
111
+ }
100
112
if ( data ?. teamId ) {
101
113
router . push ( `/register/team/${ data . teamId } ` ) ;
102
114
return null ;
Original file line number Diff line number Diff line change @@ -89,10 +89,10 @@ const TeamProfile = () => {
89
89
< li >
90
90
3. After forming a team , assign < strong > ONE</ strong > member
91
91
to “Register New Team” using your Team Name. They will
92
- receive a unique 6 -digit Team ID following registration.
92
+ receive a unique 4 -digit Team ID following registration.
93
93
</ li >
94
94
< li >
95
- 4. Next, provide this 6 -digit < strong > Team ID</ strong > to
95
+ 4. Next, provide this 4 -digit < strong > Team ID</ strong > to
96
96
all team members.
97
97
</ li >
98
98
< li >
Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ export default function JoinTeamInstructions() {
21
21
< span className = "font-bold" > ONE </ span >
22
22
member to < span className = "font-bold" > “Register New Team” </ span >
23
23
using your Team Name. They will receive a unique
24
- < span className = "font-bold" > 6 -digit Team ID </ span >
24
+ < span className = "font-bold" > 4 -digit Team ID </ span >
25
25
following registration.
26
26
</ li >
27
27
< li >
28
28
Next, provide this
29
- < span className = "font-bold" > 6 -digit Team ID </ span >
29
+ < span className = "font-bold" > 4 -digit Team ID </ span >
30
30
to all team members.
31
31
</ li >
32
32
< li >
You can’t perform that action at this time.
0 commit comments