From e8a9de6acdf325810efe1687f3b2a79c0c0047d9 Mon Sep 17 00:00:00 2001 From: Carlos Jimenez Ruiz Date: Tue, 1 Oct 2019 11:06:20 +0200 Subject: [PATCH] ticket.index.total warning css range from 1 to 50 --- modules/ticket/front/index/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ticket/front/index/index.js b/modules/ticket/front/index/index.js index d2e9646a1..2a2f3a238 100644 --- a/modules/ticket/front/index/index.js +++ b/modules/ticket/front/index/index.js @@ -103,7 +103,8 @@ export default class Controller { } totalPriceColor(ticket) { - if (parseInt(ticket.total) < 50) + const total = parseInt(ticket.total); + if (total > 0 && total < 50) return 'warning'; }