Updated on 2026-08-14

This commit is contained in:
Tangem 2020-09-24 11:58:21 +03:00
parent ba873ed73e
commit 9964d5d046

View file

@ -47,9 +47,9 @@ internal class AddressPayIdMiddleware {
}
private fun setAddressAndCheck(data: String, isUserInput: Boolean, dispatch: (Action) -> Unit) {
val data = data.toLowerCase()
if (PayIdManager.isPayId(data)) {
dispatch(SetPayIdWalletAddress(data, "", isUserInput))
val potentialPayId = data.toLowerCase()
if (PayIdManager.isPayId(potentialPayId)) {
dispatch(SetPayIdWalletAddress(potentialPayId, "", isUserInput))
} else {
dispatch(SetWalletAddress(data, isUserInput))
}