Remove unnecessary equality test

environments/review-develop-3zknud/deployments/2716^2
oakes 2023-02-28 15:30:01 -05:00
rodzic 1b00de14a6
commit f1a14efc58
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -16,7 +16,7 @@ const ConversationsList: React.FC = () => {
const conversations = useAppSelector((state) => state.conversations.items); const conversations = useAppSelector((state) => state.conversations.items);
const isLoading = useAppSelector((state) => state.conversations.isLoading); const isLoading = useAppSelector((state) => state.conversations.isLoading);
const hasMore = useAppSelector((state) => state.conversations.hasMore === true); const hasMore = useAppSelector((state) => state.conversations.hasMore);
const getCurrentIndex = (id: string) => conversations.findIndex(x => x.id === id); const getCurrentIndex = (id: string) => conversations.findIndex(x => x.id === id);