Remove unnecessary equality test

This commit is contained in:
oakes 2023-02-28 15:30:01 -05:00
parent 1b00de14a6
commit f1a14efc58

View file

@ -16,7 +16,7 @@ const ConversationsList: React.FC = () => {
const conversations = useAppSelector((state) => state.conversations.items);
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);