chore: rename variable

This commit is contained in:
canove
2020-10-17 13:29:05 -03:00
parent 68c43a5020
commit 67a56473e4

View File

@@ -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]);