Updated on 2026-08-14
This commit is contained in:
parent
33f9a0d452
commit
ca6d721ef4
1 changed files with 6 additions and 5 deletions
|
|
@ -84,7 +84,7 @@ internal class TangemPayDetailsModel @Inject constructor(
|
|||
private fun onClickReceive() {
|
||||
val depositAddress = params.config.depositAddress
|
||||
if (depositAddress == null) {
|
||||
showError()
|
||||
showBottomSheetError(TangemPayDetailsErrorType.Receive)
|
||||
} else {
|
||||
dataForReceiveFactory.getDataForReceive(depositAddress = depositAddress, chainId = params.config.chainId)
|
||||
.onRight {
|
||||
|
|
@ -103,10 +103,7 @@ internal class TangemPayDetailsModel @Inject constructor(
|
|||
)
|
||||
bottomSheetNavigation.activate(TangemPayDetailsNavigation.Receive(config))
|
||||
}
|
||||
.onLeft {
|
||||
val messageUM = TangemPayErrorMessageFactory.createErrorMessage(TangemPayDetailsErrorType.Receive)
|
||||
uiMessageSender.send(message = messageUM)
|
||||
}
|
||||
.onLeft { showBottomSheetError(TangemPayDetailsErrorType.Receive) }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -166,4 +163,8 @@ internal class TangemPayDetailsModel @Inject constructor(
|
|||
override fun onTransactionClick(item: TangemPayTxHistoryItem) {
|
||||
bottomSheetNavigation.activate(TangemPayDetailsNavigation.TransactionDetails(item))
|
||||
}
|
||||
|
||||
private fun showBottomSheetError(type: TangemPayDetailsErrorType) {
|
||||
uiMessageSender.send(message = TangemPayErrorMessageFactory.createErrorMessage(type = type))
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue