Skip to content

Commit

Permalink
Merge 99edba7 into bc4d6cb
Browse files Browse the repository at this point in the history
  • Loading branch information
pellaea committed Mar 7, 2024
2 parents bc4d6cb + 99edba7 commit 44af3bd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/controllers/observations_controller/show.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ module ObservationsController::Show
def show
pass_query_params
store_location
case params[:flow]
when "next"
redirect_to_next_object(:next, Observation, params[:id]) and return
when "prev"
redirect_to_next_object(:prev, Observation, params[:id]) and return
if params[:flow].present?
redirect_to_next_object(params[:flow].to_sym, Observation, params[:id])
return
end

check_if_user_wants_to_make_their_votes_public
Expand Down

0 comments on commit 44af3bd

Please sign in to comment.