From 932c686afbe2009f5d39130e71f4d0f0e55a4646 Mon Sep 17 00:00:00 2001 From: Sam Seed Date: Thu, 9 Mar 2023 17:03:58 +0000 Subject: [PATCH] refactor: correctly order shared ownership types in array --- app/models/validations/sales/financial_validations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/validations/sales/financial_validations.rb b/app/models/validations/sales/financial_validations.rb index dfba04878..fd4d9ad26 100644 --- a/app/models/validations/sales/financial_validations.rb +++ b/app/models/validations/sales/financial_validations.rb @@ -55,7 +55,7 @@ module Validations::Sales::FinancialValidations def validate_percentage_bought_at_least_threshold(record) return unless record.stairbought && record.type - if [2, 18, 16, 24].include? record.type + if [2, 16, 18, 24].include? record.type threshold = 10 elsif record.type == 30 threshold = 1