diff --git a/detailsBody.html b/detailsBody.html
index 17c970652..39ffac33c 100644
--- a/detailsBody.html
+++ b/detailsBody.html
@@ -93,8 +93,11 @@
{{ keyTrans('payment') }}:
+ {% set i = 0 %}
{% for k, tag in payment %}
- {% if tags[tag] == 'no' %}{{ keyTrans(tag, { default: k }) }} {% else %}{{ keyTrans(tag, { default: k }) }} {% endif %}
+ {%- if i > 0 %},{% endif %}
+ {% if tags[tag] == 'no' %}{{ keyTrans(tag, { default: k }) }}{% else %}{{ keyTrans(tag, { default: k }) }}{% endif -%}
+ {% set i = i + 1 -%}
{% endfor %}
diff --git a/popupBody.html b/popupBody.html
index 46533572d..b50895225 100644
--- a/popupBody.html
+++ b/popupBody.html
@@ -91,8 +91,11 @@
{{ keyTrans('payment') }}:
+ {% set i = 0 %}
{% for k, tag in payment %}
- {% if tags[tag] == 'no' %}{{ keyTrans(tag, { default: k }) }} {% else %}{{ keyTrans(tag, { default: k }) }} {% endif %}
+ {%- if i > 0 %},{% endif %}
+ {% if tags[tag] == 'no' %}{{ keyTrans(tag, { default: k }) }}{% else %}{{ keyTrans(tag, { default: k }) }}{% endif -%}
+ {% set i = i + 1 -%}
{% endfor %}