Skip to content

Commit 23b2158

Browse files
committed
Fix a crash when view model's continueButtonTapped is called not on the main thread because it's not a main actor.
1 parent f6bafaa commit 23b2158

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

WooCommerce/Classes/Authentication/Store Creation/Profiler/Country/StoreCreationCountryQuestionViewModel.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Combine
22
import Foundation
33

44
/// View model for `StoreCreationCountryQuestionView`, an optional profiler question about store country in the store creation flow.
5+
@MainActor
56
final class StoreCreationCountryQuestionViewModel: StoreCreationProfilerQuestionViewModel, ObservableObject {
67
typealias CountryCode = SiteAddress.CountryCode
78

0 commit comments

Comments
 (0)