diff --git a/SampleApp/SampleApp/ViewModels/ContentViewModel.swift b/SampleApp/SampleApp/ViewModels/ContentViewModel.swift index 0cf3ed4..fbd8121 100644 --- a/SampleApp/SampleApp/ViewModels/ContentViewModel.swift +++ b/SampleApp/SampleApp/ViewModels/ContentViewModel.swift @@ -112,9 +112,9 @@ class ContentViewModel: ObservableObject { await MainActor.run { self.state = .error("transactionError: \(errorMessage)") } - } catch TapToPaySDKError.unableToConnectReader { + } catch TapToPaySDKError.unableToConnectReader(let errorMessage) { await MainActor.run { - self.state = .error("unableToConnectReader") + self.state = .error("unableToConnectReader: \(errorMessage)") } } catch TapToPaySDKError.invalidParameter(let errorMessage) { await MainActor.run {