mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-02-02 03:06:26 +00:00
Receive page: QR code bug fix for invalid payment ids
This commit is contained in:
parent
7e801642c2
commit
b73bcdf4b9
1 changed files with 2 additions and 2 deletions
|
@ -80,8 +80,8 @@ Rectangle {
|
||||||
s += (nfields++ ? "&" : "?")
|
s += (nfields++ ? "&" : "?")
|
||||||
s += "tx_amount=" + amount
|
s += "tx_amount=" + amount
|
||||||
}
|
}
|
||||||
var pid = paymentIdLine.text.trim()
|
var pid = paymentIdLine.text.trim().toLowerCase()
|
||||||
if (pid !== "") {
|
if (pid !== "" && walletManager.paymentIdValid(pid)) {
|
||||||
s += (nfields++ ? "&" : "?")
|
s += (nfields++ ? "&" : "?")
|
||||||
s += "tx_payment_id=" + pid
|
s += "tx_payment_id=" + pid
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue