diff --git a/app/models/form/sales/pages/about_staircase.rb b/app/models/form/sales/pages/about_staircase.rb index de07aa98c..4d5882916 100644 --- a/app/models/form/sales/pages/about_staircase.rb +++ b/app/models/form/sales/pages/about_staircase.rb @@ -5,7 +5,7 @@ class Form::Sales::Pages::AboutStaircase < ::Form::Page @header = "About the staircasing transaction" @depends_on = [{ "staircase" => 1, - "joint_purchase?" => joint_purchase + "joint_purchase?" => joint_purchase, }] end diff --git a/app/models/form/sales/questions/staircase_owned.rb b/app/models/form/sales/questions/staircase_owned.rb index 3f10b0920..d05a421f0 100644 --- a/app/models/form/sales/questions/staircase_owned.rb +++ b/app/models/form/sales/questions/staircase_owned.rb @@ -2,7 +2,7 @@ class Form::Sales::Questions::StaircaseOwned < ::Form::Question def initialize(id, hsh, page, joint_purchase:) super(id, hsh, page) @id = "stairowned" - @check_answer_label = "Percentage the buyer#{'s' if joint_purchase} now own#{'s' if !joint_purchase} in total" + @check_answer_label = "Percentage the buyer#{'s' if joint_purchase} now own#{'s' unless joint_purchase} in total" @header = "What percentage of the property #{joint_purchase ? 'do the buyers' : 'does the buyer'} now own in total?" @type = "numeric" @width = 5