From 6f1df9da44979d3eefba086118555de52eb8d5ea Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 28 Nov 2024 00:32:10 +0100 Subject: [PATCH] Pretend everything is fine --- holycow_frontend/package.json | 1 - holycow_frontend/src/app/page.tsx | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/holycow_frontend/package.json b/holycow_frontend/package.json index 78da87c..a7c89aa 100644 --- a/holycow_frontend/package.json +++ b/holycow_frontend/package.json @@ -17,7 +17,6 @@ "next": "15.0.3", "react": "19.0.0-rc-66855b96-20241106", "react-dom": "19.0.0-rc-66855b96-20241106", - "swr": "^2.2.5", "typescript": "^5.7.2" } } diff --git a/holycow_frontend/src/app/page.tsx b/holycow_frontend/src/app/page.tsx index 28056d1..6e8bd99 100644 --- a/holycow_frontend/src/app/page.tsx +++ b/holycow_frontend/src/app/page.tsx @@ -4,7 +4,6 @@ import { StatPanel } from "@/components/StatPanel"; import { useTelegram } from "@/components/useTelegram"; import { useMemo } from "react"; import classNames from "classnames"; -import useSWR from "swr"; export default function Page() { const telegram = useTelegram() @@ -12,7 +11,8 @@ export default function Page() { const userId = telegramData?.user?.id const userName = telegramData?.user?.first_name ?? "???" - const { data: resultsData, error: resultsError } = useSWR(undefined) + const resultsData = undefined + const resultsError = undefined const contents = useMemo(() => { if(resultsError) {