Skip to content

Commit

Permalink
merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dhenry-stripe committed Mar 16, 2022
1 parent aaca940 commit 7b782f1
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import com.stripeterminalreactnative.ReactNativeConstants.FETCH_TOKEN_PROVIDER
import com.stripeterminalreactnative.ReactNativeConstants.FINISH_DISCOVERING_READERS
import com.stripeterminalreactnative.ReactNativeConstants.FINISH_INSTALLING_UPDATE
import com.stripeterminalreactnative.ReactNativeConstants.REPORT_AVAILABLE_UPDATE
import com.stripeterminalreactnative.ReactNativeConstants.REPORT_UNEXPECTED_READER_DISCONNECT
import com.stripeterminalreactnative.ReactNativeConstants.REPORT_UPDATE_PROGRESS
import com.stripeterminalreactnative.ReactNativeConstants.REQUEST_READER_DISPLAY_MESSAGE
import com.stripeterminalreactnative.ReactNativeConstants.REQUEST_READER_INPUT
Expand Down Expand Up @@ -115,10 +116,7 @@ class StripeTerminalReactNativeModule(reactContext: ReactApplicationContext) :
"Reader has been disconnected unexpectedly"
)
)
val result = WritableNativeMap().apply {
putMap("result", error)
}
sendEvent(FINISH_DISCOVERING_READERS.listenerName, result)
sendEvent(REPORT_UNEXPECTED_READER_DISCONNECT.listenerName, error)
}

override fun onConnectionStatusChange(status: ConnectionStatus) {
Expand Down

0 comments on commit 7b782f1

Please sign in to comment.