diff --git a/pages/Receive.qml b/pages/Receive.qml index 6e658900..b4730293 100644 --- a/pages/Receive.qml +++ b/pages/Receive.qml @@ -42,7 +42,7 @@ Rectangle { property alias integratedAddressText : integratedAddressLine.text function updatePaymentId(payment_id) { - if (typeof appWindow.currentWallet === 'undefined') + if (typeof appWindow.currentWallet === 'undefined' || appWindow.currentWallet == null) return // generate a new one if not given as argument if (typeof payment_id === 'undefined') {