aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authorreemuru <rimuru@hiahatf.org>2022-05-05 10:17:36 -0500
committerreemuru <rimuru@hiahatf.org>2022-05-05 10:18:15 -0500
commitcddf3c3cdb4c8a27f9dded3344762e48ad13301f (patch)
tree1e632924ced3e2f0390c89596e766678c6fb602d /main.qml
parent002fe8eefa5616ee7eb7c21a4dc827e357f3fcb0 (diff)
downloadmonzero-gui-cddf3c3cdb4c8a27f9dded3344762e48ad13301f.tar.gz
monzero-gui-cddf3c3cdb4c8a27f9dded3344762e48ad13301f.tar.xz
monzero-gui-cddf3c3cdb4c8a27f9dded3344762e48ad13301f.zip
History: fix payment proof button
Adding support for reserve proof added an additional argument to the getProofClicked signal. The payment proof button on the transaction list from history.qml does not pass this argument and fails with insufficient argument error. Fixes: 0f67580e ("Advanced: ReserveProof: Add support for reserve proof")
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.qml b/main.qml
index 18249c7b..de280b56 100644
--- a/main.qml
+++ b/main.qml
@@ -999,7 +999,7 @@ ApplicationWindow {
// called on "getProof"
function handleGetProof(txid, address, message, amount) {
- if (amount.length > 0) {
+ if (amount !== null && amount.length > 0) {
var result = currentWallet.getReserveProof(false, currentWallet.currentSubaddressAccount, walletManager.amountFromString(amount), message)
txProofComputed(null, result)
} else {