I am trying to implement a multiple short if else condition in Javascript. I want to change the color of the ticket button based on its status:
customer.status === "Solved" ? "success" : "warning"
But i have 3 statuses for 1 ticket. I want to check the status of the request when is "Closed" and change the button of the ticket to "danger"
customer.status === "Solved" && !== "Closed" ? "success" : "warning" something like this, but it doesn't work. Is there any way how to do this?
Aucun commentaire:
Enregistrer un commentaire