feat: update tickets list on transfer

This commit is contained in:
canove
2020-10-24 19:01:04 -03:00
parent c0611916e7
commit 65deab09b4
5 changed files with 16 additions and 14 deletions

View File

@@ -101,7 +101,7 @@ const Ticket = () => {
socket.on("ticket", data => {
if (data.action === "updateStatus") {
setTicket({ ...data.ticket, user: data.user });
setTicket(data.ticket);
}
if (data.action === "delete") {