Change when we show the load more button on voting
@@ -22,8 +22,8 @@ import { TagsFilter } from "~/components/tags-filter";
import { formatDeadlineDateTime } from "~/helpers/deadlines";
import { prefetchSharedQueries } from "~/helpers/prefetch";
import { useInfiniteFetchScroll } from "~/helpers/use-infinite-fetch-scroll";
-import { useVotingSubmissionsQuery } from "~/types";
import { useCurrentLanguage } from "~/locale/context";
+import { useVotingSubmissionsQuery } from "~/types";
type VoteTypes = "all" | "votedOnly" | "notVoted";
@@ -434,6 +434,7 @@ export const VotingPage = () => {
</Box>
)}
+ {loggedIn && !isVotingClosed && data?.submissions && (
<Flex
sx={{
maxWidth: "container",
@@ -459,6 +460,7 @@ export const VotingPage = () => {
</Button>
)}
</Flex>
+ )}
</Box>
);
};
