fix: change ticket timestamp display to PTBR format

This commit is contained in:
canove
2020-08-06 21:02:36 -03:00
parent c56a9cf0c2
commit f0fb5f5972
2 changed files with 4 additions and 5 deletions

View File

@@ -248,8 +248,7 @@ const Tickets = () => {
}, [ticketId, userId, history]);
const loadMore = () => {
if (loading) return;
setPageNumber(prevPageNumber => prevPageNumber + 1);
setPageNumber(prevState => prevState + 1);
};
const updateTickets = ({ ticket }) => {
@@ -362,8 +361,8 @@ const Tickets = () => {
return (
<InfiniteScroll
pageStart={0}
loadMore={loadMore}
hasMore={!(tickets.length === count)}
loadMore={() => !loading && loadMore()}
hasMore={count > tickets.length}
useWindow={false}
initialLoad={false}
threshold={100}