diff --git a/detailsBody.html b/detailsBody.html
index 17c9706..39ffac3 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 4653357..b508952 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 %}