Skip to content

Commit 2939acf

Browse files
Update landing_controller.rb (#257)
1 parent ce3fc25 commit 2939acf

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

app/controllers/landing_controller.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
class LandingController < ApplicationController
22
def index
33
if current_user
4-
redirect_to projects_path
5-
return
4+
steps_left = User::TutorialStep.all.count - current_user.tutorial_steps.count
5+
if steps_left > 0
6+
redirect_to kitchen_path
7+
return
8+
else
9+
redirect_to projects_path
10+
return
11+
end
612
end
713
@prizes = Cache::CarouselPrizesJob.perform_now || []
814
if @prizes.any?

0 commit comments

Comments
 (0)