diff --git a/erpnext/selling/page/point_of_sale/pos_item_cart.js b/erpnext/selling/page/point_of_sale/pos_item_cart.js
index abd1f43a51a..52d345cbfce 100644
--- a/erpnext/selling/page/point_of_sale/pos_item_cart.js
+++ b/erpnext/selling/page/point_of_sale/pos_item_cart.js
@@ -507,20 +507,14 @@ erpnext.PointOfSale.ItemCart = class {
render_taxes(value, taxes) {
if (taxes.length) {
const currency = this.events.get_frm().doc.currency;
- this.$totals_section.find('.taxes-container').css('display', 'flex').html(
- `${
- // eslint-disable-next-line no-unused-vars
- taxes.map((t, i) => {
- const description = /[0-9]+/.test(t.description) ? t.description : `${t.description} @ ${t.rate}%`;
- return `
-
- ${description}
-
-
${format_currency(value, currency)}
-
`
- }).join('')
- }`
- );
+ const taxes_html = taxes.map(t => {
+ const description = /[0-9]+/.test(t.description) ? t.description : `${t.description} @ ${t.rate}%`;
+ return `
+
${description}
+
${format_currency(value, currency)}
+
`
+ }).join('');
+ this.$totals_section.find('.taxes-container').css('display', 'flex').html(taxes_html);
} else {
this.$totals_section.find('.taxes-container').css('display', 'none').html('');
}
@@ -844,7 +838,7 @@ erpnext.PointOfSale.ItemCart = class {
Recent Transactions
`
);
// transactions need to be in diff div from sticky elem for scrolling
- this.$customer_section.append(``)
+ this.$customer_section.append(``);
this.render_customer_fields();
this.fetch_customer_transactions();