Skip to content

Commit

Permalink
handle nil value responses
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwoldatwork committed Sep 28, 2023
1 parent ce05812 commit 841a0f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/cscrm_data_collection2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def self.established_process_information_sharing_options
#

def self.export_conversion_question_10(field)
return nil if field.length == 1
return nil if !field || field.length == 1

# 0 = Not Identified
# 1 = 1 or 2 identified
Expand All @@ -445,7 +445,7 @@ def self.export_conversion_question_10(field)
end

def self.export_conversion_question_12(field)
return nil if field.length == 1
return nil if !field || field.length == 1

# 0 = Not Considered
# 1 = up to 2 selections
Expand All @@ -470,7 +470,7 @@ def self.export_conversion_question_12(field)
end

def self.export_conversion_question_14(field)
return nil if field.length == 1
return nil if !field || field.length == 1

# 0 = Not Considered
# 1 = Some Products and/or Services
Expand Down Expand Up @@ -520,7 +520,7 @@ def self.export_conversion_question_16(field)
end

def self.export_conversion_question_17(field)
return nil if field.length == 1
return nil if !field || field.length == 1

# 0 = Not Considered;
# 1 = Response option(s), other than SCRAs;
Expand Down

0 comments on commit 841a0f4

Please sign in to comment.