qml: handle 2fa wallet can have None for billing_info
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user