Skip to content

Commit 153cb15

Browse files
committed
Update store creation profiler platform list to use allCases from CaseIterable conformance.
1 parent 225d369 commit 153cb15

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

WooCommerce/Classes/Authentication/Store Creation/Profiler/Selling Status/StoreCreationSellingPlatformsQuestionViewModel.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Foundation
99
final class StoreCreationSellingPlatformsQuestionViewModel: StoreCreationProfilerQuestionViewModel, ObservableObject {
1010
/// Other online platforms that the user might be selling. Source of truth:
1111
/// https://github.com/Automattic/woocommerce.com/blob/trunk/themes/woo/start/config/options.json
12-
enum Platform: Equatable {
12+
enum Platform: Equatable, CaseIterable {
1313
case amazon
1414
case bigCartel
1515
case bigCommerce
@@ -33,9 +33,7 @@ final class StoreCreationSellingPlatformsQuestionViewModel: StoreCreationProfile
3333

3434
/// Question content.
3535
/// TODO: 8376 - update values when API is ready.
36-
let platforms: [Platform] = [
37-
.amazon, .bigCartel, .bigCommerce, .eBay, .etsy, .facebookMarketplace, .googleShopping, .pinterest, .shopify, .square, .squarespace, .wix, .wordPress
38-
]
36+
let platforms: [Platform] = Platform.allCases
3937

4038
@Published private(set) var selectedPlatforms: Set<Platform> = []
4139

0 commit comments

Comments
 (0)