diff --git a/frontend/src/components/Ticket/index.js b/frontend/src/components/Ticket/index.js index 8396f63..8f0087d 100644 --- a/frontend/src/components/Ticket/index.js +++ b/frontend/src/components/Ticket/index.js @@ -66,7 +66,7 @@ const Ticket = () => { useEffect(() => { setLoading(true); const delayDebounceFn = setTimeout(() => { - const fetchMessages = async () => { + const fetchTicket = async () => { try { const { data } = await api.get("/tickets/" + ticketId); @@ -89,7 +89,7 @@ const Ticket = () => { } } }; - fetchMessages(); + fetchTicket(); }, 500); return () => clearTimeout(delayDebounceFn); }, [ticketId, history]);