From 67a56473e40235922f5a43174427408184dfc95c Mon Sep 17 00:00:00 2001 From: canove Date: Sat, 17 Oct 2020 13:29:05 -0300 Subject: [PATCH] chore: rename variable --- frontend/src/components/Ticket/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]);