Skip to content

Commit

Permalink
Fix routing issue for overseas users and smart answers (#142)
Browse files Browse the repository at this point in the history
Due to a routing bug, users who said they were based outside of the UK were sent straight into smart answers without getting the option to skip it. This change fixes that issue.
  • Loading branch information
irisfaraway committed Apr 24, 2018
1 parent b80732e commit 7d115f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/concerns/can_change_workflow_status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ module CanChangeWorkflowStatus
if: :should_register_in_wales?

transitions from: :location_form,
to: :other_businesses_form,
to: :tier_check_form,
if: :based_overseas?

transitions from: :location_form,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"northern_ireland" => :register_in_northern_ireland_form,
"scotland" => :register_in_scotland_form,
"wales" => :register_in_wales_form,
"overseas" => :other_businesses_form
"overseas" => :tier_check_form
}.each do |location, next_form|
it_behaves_like "'next' transition from location_form", location, next_form
end
Expand Down

0 comments on commit 7d115f8

Please sign in to comment.