Skip to content

Commit

Permalink
removing logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtoddmathes committed Apr 9, 2024
1 parent 3c88b0b commit f1d8eb6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions rails_root/app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
# Controller for the home page
class HomeController < ApplicationController
def index
# @survey_responses = SurveyResponse.where(profile_id: 2) # FIXME: use code below when other part works
return if session[:userinfo].nil?

@survey_profile = SurveyProfile.find_by(user_id: session[:userinfo]['sub'])
puts session[:userinfo]['sub'].to_json
return if @survey_profile.nil?

@survey_responses = SurveyResponse.where(profile_id: @survey_profile.id)
Expand Down

0 comments on commit f1d8eb6

Please sign in to comment.