Gift card payment: Fix public_name fallback

This commit is contained in:
Raphael Michel
2024-03-15 16:59:58 +01:00
parent 4fd7d406a0
commit 9513b6e8d7

View File

@@ -1311,9 +1311,7 @@ class GiftCardPayment(BasePaymentProvider):
@property
def public_name(self) -> str:
return str(self.settings.get("public_name", as_type=LazyI18nString)) or _(
"Gift card"
)
return str(self.settings.get("public_name", as_type=LazyI18nString) or _("Gift card"))
@property
def settings_form_fields(self):