Skip to content

Commit

Permalink
Merge pull request #3534 from zooniverse/tutorial-preferences
Browse files Browse the repository at this point in the history
Tutorials don't need to create preferences
  • Loading branch information
mcbouslog authored Mar 2, 2017
2 parents 7bf6e09 + fa77120 commit e444cb7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/components/tutorial.cjsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ module.exports = React.createClass

if @props.user?
projectPreferences = @props.preferences
projectPreferences ?= apiClient.type('project_preferences').create
links:
project: project.id
preferences: {}
# Build this manually. Having an index (even as a strings) keys creates an array.
projectPreferences.preferences ?= {}
projectPreferences.preferences.tutorials_completed_at ?= {}
Expand Down

0 comments on commit e444cb7

Please sign in to comment.