fix(15): set skipped identical prices

so 150 + 10 + 20 + 20 was only 180
This commit is contained in:
efim 2023-07-15 13:49:51 +00:00
parent 4d9a7c3e12
commit 77e70c3536
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,7 @@ object Models {
} }
def fullOrderPrice: Int = { def fullOrderPrice: Int = {
selectedPlanCost + userAnswers.step3.addons.map(addonCost).sum selectedPlanCost + userAnswers.step3.addons.toList.map(addonCost).sum
} }
def availablePlans = PlanType.values.toList.asJava def availablePlans = PlanType.values.toList.asJava
@ -106,6 +106,7 @@ object Models {
case OnlineService extends Addons(1, "Access to multiplayer games") case OnlineService extends Addons(1, "Access to multiplayer games")
case LargerStorage extends Addons(2, "Extra 1TB of cloud storage") case LargerStorage extends Addons(2, "Extra 1TB of cloud storage")
case CustomProfile extends Addons(2, "Custom theme on your profile") case CustomProfile extends Addons(2, "Custom theme on your profile")
/** Change camel case into human readable. Adding single space before each /** Change camel case into human readable. Adding single space before each
* uppercase * uppercase
*/ */