diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 8556477..983ba80 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -20,7 +20,7 @@ export default function RootLayout({ isClient: typeof window !== "undefined" }); const client = createClient({ - url: process.env.NEXT_PUBLIC_GRAPHQL_URL || "", + url: "/api/graphql", exchanges: [cacheExchange, ssr, fetchExchange], suspense: true }); diff --git a/src/app/page.tsx b/src/app/page.tsx index 84b898e..4c98e94 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -148,7 +148,7 @@ export default function Home() { - {totalGroups && ( + {totalGroups ? ( + ) : ( + )} - {todayStats && ( + {todayStats ? ( + ) : ( + )} diff --git a/src/components/charts/LineChart.tsx b/src/components/charts/LineChart.tsx index 4cabc1e..8bad303 100644 --- a/src/components/charts/LineChart.tsx +++ b/src/components/charts/LineChart.tsx @@ -32,7 +32,7 @@ const LineChartComponent = ({ axisLine={false} dataKey={chart.key("day")} stroke={chart.color("border")} - // label={{ value: "Day", position: "bottom" }} + // label={{ value: "Day", position: "bottom" }} />