File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
WooCommerce/Classes/ViewRelated/Products/Variations Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ struct ProductVariationGenerator {
3737 /// Generates all posible combination for a product attributes.
3838 ///
3939 private static func getCombinations( from product: Product ) -> [ Combination ] {
40- // Iterates through attributes while eceiving the previous combinations list.
40+ // Iterates through attributes while receiving the previous combinations list.
4141 product. attributes. reduce ( [ Combination ( options: [ ] ) ] ) { combinations, attribute in
4242 combinations. flatMap { combination in
4343 // When receiving a previous combination list, we add each attribute to each previous combination util we finish with them.
@@ -53,8 +53,8 @@ struct ProductVariationGenerator {
5353 private static func filterExistingCombinations( _ combinations: [ Combination ] , existing variations: [ ProductVariation ] ) -> [ Combination ] {
5454 // Convert variations into combinations
5555 let existingCombinations = variations. map { existingVariation in
56- let options = existingVariation. attributes. map { attibute in
57- Option ( attributeID: attibute . id, attributeName: attibute . name, value: attibute . option)
56+ let options = existingVariation. attributes. map { attribute in
57+ Option ( attributeID: attribute . id, attributeName: attribute . name, value: attribute . option)
5858 }
5959 return Combination ( options: options)
6060 }
You can’t perform that action at this time.
0 commit comments