Updated on 2026-08-14
This commit is contained in:
parent
2d96d77fe3
commit
c469d4133e
2 changed files with 4 additions and 2 deletions
|
|
@ -10,4 +10,7 @@ internal enum class EnterAddressSource {
|
|||
|
||||
val isPasted: Boolean
|
||||
get() = this != InputField
|
||||
|
||||
val isAutoNext: Boolean
|
||||
get() = this == RecentAddress || this == MyWallets
|
||||
}
|
||||
|
|
@ -286,8 +286,7 @@ internal class SendDestinationModel @Inject constructor(
|
|||
}
|
||||
|
||||
private fun autoNextFromRecipient(type: EnterAddressSource?, isValidAddress: Boolean, isValidMemo: Boolean) {
|
||||
val isRecent = type == EnterAddressSource.RecentAddress
|
||||
if (isRecent && isValidAddress && isValidMemo) {
|
||||
if (type?.isAutoNext == true && isValidAddress && isValidMemo) {
|
||||
saveResult()
|
||||
(params as? SendDestinationComponentParams.DestinationParams)?.callback?.onNextClick()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue