mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-17 19:37:02 +00:00
chore: rename variable
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user