1
0

qml: handle 2fa wallet can have None for billing_info

This commit is contained in:
Sander van Grieken
2024-01-22 13:30:46 +01:00
parent def1abfca5
commit 50a53aaedc

View File

@@ -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):