diff --git a/lnbits/templates/base.html b/lnbits/templates/base.html
index 99479c23..ae56f6d4 100644
--- a/lnbits/templates/base.html
+++ b/lnbits/templates/base.html
@@ -65,16 +65,16 @@
class="q-mr-md gt-md"
>
- {%endif%} {% if LNBITS_CUSTOM_BADGE is defined %}
+ {%endif%} {% if LNBITS_CUSTOM_BADGE is not none and
+ LNBITS_CUSTOM_BADGE != "" %}
- {%endif%} {% if LNBITS_SERVICE_FEE > 0 %}
+ {% endif %} {% if LNBITS_SERVICE_FEE > 0 %}