Browse Source

qml: handle 2fa wallet can have None for billing_info

master
Sander van Grieken 2 years ago
parent
commit
50a53aaedc
No known key found for this signature in database
GPG Key ID: 9BCF8209EA402EBA
  1. 4
      electrum/gui/qml/qewallet.py

4
electrum/gui/qml/qewallet.py

@ -338,7 +338,9 @@ class QEWallet(AuthMixin, QObject, QtEventListener):
billingInfoChanged = pyqtSignal()
@pyqtProperty('QVariantMap', notify=billingInfoChanged)
def billingInfo(self):
return {} if self.wallet.wallet_type != '2fa' else self.wallet.billing_info
if self.wallet.wallet_type != '2fa':
return {}
return self.wallet.billing_info if self.wallet.billing_info is not None else {}
@pyqtProperty(bool, notify=dataChanged)
def canHaveLightning(self):

Loading…
Cancel
Save