Skip to content

Commit c433209

Browse files
committed
fix condition to show insights
1 parent 7ad4a75 commit c433209

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/components/insights-carousel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const InsightsCarousel = () => {
5656
);
5757
}
5858

59-
if (insights?.length) {
59+
if (!insights?.length) {
6060
return (
6161
<div className="flex w-full py-6 justify-center text-sm text-muted-foreground">
6262
We are reworking insights and we will have new insights soon.

utils/reject-not-allowed-graphql-operations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type FieldNode, type OperationDefinitionNode, parse, visit } from 'graphql';
22

3-
const ALLOWED_ROOT_FIELDS = new Set(['globalRankByLogin', 'user', 'insights', 'organization']);
3+
const ALLOWED_ROOT_FIELDS = new Set(['globalRankByLogin', 'user', 'insights', 'insight', 'organization']);
44

55
export function rejectNotAllowedGraphqlOperations(query: string): boolean {
66
try {

0 commit comments

Comments
 (0)