Skip to content

Commit

Permalink
fix(health-sdk): Replaced Throwable
Browse files Browse the repository at this point in the history
IPC-251
  • Loading branch information
danicretu committed May 17, 2024
1 parent 026307f commit 2305e3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ internal class ReviewViewModel(val giniHealth: GiniHealth, val configuration: Re
giniHealth.setOpenBankState(GiniHealth.PaymentState.Error(Exception("Cancelled")))
}
is Resource.Error -> {
giniHealth.setOpenBankState(GiniHealth.PaymentState.Error(Throwable(byteArrayResource.exception)))
giniHealth.setOpenBankState(GiniHealth.PaymentState.Error(byteArrayResource.exception ?: Exception("Error")))
}
is Resource.Success -> {
giniHealth.setOpenBankState(GiniHealth.PaymentState.Success(paymentRequest))
Expand Down

0 comments on commit 2305e3b

Please sign in to comment.