ticket.index.total warning css range from 1 to 50
gitea/salix/dev This commit has test failures Details

This commit is contained in:
Carlos Jimenez Ruiz 2019-10-01 11:06:20 +02:00
parent cef28307d0
commit e8a9de6acd
1 changed files with 2 additions and 1 deletions

View File

@ -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';
}