Skip to content

Commit e3d3872

Browse files
Check for combined first and last name
We need to use the SolidusSupport method for checking for the combined first and last name since Solidus 3 has removed the deprecated methods from the config.
1 parent fb607bf commit e3d3872

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/support/features/fill_addresses_fields.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def fill_addresses_fields_with(address)
88
zipcode
99
phone
1010
]
11-
fields += if Spree::Config.has_preference?(:use_combined_first_and_last_name_in_address) && Spree::Config.use_combined_first_and_last_name_in_address
11+
fields += if SolidusSupport.combined_first_and_last_name_in_address?
1212
%w[name]
1313
else
1414
%w[firstname lastname]

0 commit comments

Comments
 (0)