Commit de update dos tickets do dia.

pull/18/head
adriano 2022-08-08 16:40:25 -03:00
parent ddc9fc16fa
commit ed53fc11da
2 changed files with 2 additions and 9 deletions

View File

@ -20,14 +20,7 @@ const Chart = (props) => {
const theme = useTheme();
const date = useRef(new Date().toISOString());
const { tickets } = useTickets({ date: date.current, unlimited: "true" });
// useEffect(()=>{
// console.log('kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk')
// },[props.change])
let { tickets } = useTickets({ date: date.current, unlimited: "true" });
const [chartData, setChartData] = useState([
{ time: "08:00", amount: 0 },

View File

@ -291,7 +291,7 @@ const Dashboard = () => {
socket.on("ticketStatus", (data) => {
console.log('data: ',data)
// console.log('data: ',data)
if(data.action === "update"){
setStatus(data.ticketStatus.status)