diff --git a/main.qml b/main.qml index 845af5bd..73026866 100644 --- a/main.qml +++ b/main.qml @@ -980,7 +980,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 { diff --git a/pages/History.qml b/pages/History.qml index efdf5931..48befeaa 100644 --- a/pages/History.qml +++ b/pages/History.qml @@ -1720,7 +1720,7 @@ Rectangle { } console.log("getProof: Generate clicked: txid " + hash + ", address " + address); - middlePanel.getProofClicked(hash, address, ''); + middlePanel.getProofClicked(hash, address, '', null); informationPopup.title = qsTr("Payment proof") + translationManager.emptyString; informationPopup.text = qsTr("Generating payment proof") + "..." + translationManager.emptyString; informationPopup.onCloseCallback = null