Skip to content

Commit 2b6d9df

Browse files
committed
Allowed assigning new project to jam when created from profile
1 parent 80d4835 commit 2b6d9df

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

src/website/projects.go

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -433,16 +433,14 @@ func ProjectNew(c *RequestContext) ResponseData {
433433
project.Owners = append(project.Owners, templates.UserToTemplate(c.CurrentUser))
434434
project.Personal = true
435435

436-
if c.Req.URL.Query().Has("jam") {
437-
currentJam := hmndata.UpcomingJam(hmndata.JamProjectCreateGracePeriod)
438-
if currentJam != nil {
439-
project.JamParticipation = []templates.ProjectJamParticipation{
440-
{
441-
JamName: currentJam.Name,
442-
JamSlug: currentJam.Slug,
443-
Participating: true,
444-
},
445-
}
436+
currentJam := hmndata.UpcomingJam(hmndata.JamProjectCreateGracePeriod)
437+
if currentJam != nil {
438+
project.JamParticipation = []templates.ProjectJamParticipation{
439+
{
440+
JamName: currentJam.Name,
441+
JamSlug: currentJam.Slug,
442+
Participating: c.Req.URL.Query().Has("jam"),
443+
},
446444
}
447445
}
448446

0 commit comments

Comments
 (0)