Filtering out UserCancelledAction
This commit is contained in:
parent
8753d4c6d8
commit
b6b88d31a1
|
@ -74,8 +74,12 @@ class BankingService(
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun handleUnsuccessfulBankingClientResponse(action: BankingClientAction, response: Response<*>) {
|
private fun handleUnsuccessfulBankingClientResponse(action: BankingClientAction, response: Response<*>) {
|
||||||
|
log.error { "$action was not successful: $response" }
|
||||||
|
|
||||||
response.error?.let { error ->
|
response.error?.let { error ->
|
||||||
uiState.bankingClientErrorOccurred.value = BankingClientError(action, error)
|
if (error.type != ErrorType.UserCancelledAction) { // the user knows that she cancelled the action
|
||||||
|
uiState.bankingClientErrorOccurred.value = BankingClientError(action, error)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue