diff --git a/components/add-game-to-finished-list.tsx b/components/add-game-to-finished-list.tsx index 28b94775f6d3805cb604bc849ef0e24bf8db9c24..40b4e1dbf77977388d0a43295237314f5b921f33 100644 --- a/components/add-game-to-finished-list.tsx +++ b/components/add-game-to-finished-list.tsx @@ -1,9 +1,9 @@ "use client" +import { User } from "@prisma/client"; import { useRouter } from "next/navigation"; import { startTransition } from "react"; import { Button } from "./ui/button"; -import { User } from "@prisma/client"; export default function AddGameToFinishedList(props: { gameId: string, user: User }) { @@ -86,7 +86,7 @@ export default function AddGameToFinishedList(props: { gameId: string, user: Use ) } } catch (error) { - throw new Error("Failed to check finished-playing-List"); + // throw new Error("Failed to check finished-playing-List"); } return ( diff --git a/components/add-game-to-plan-list.tsx b/components/add-game-to-plan-list.tsx index 7edde00db5969a8a08d9d524aee6f3b13ba9aff7..b2c1e45426adea91cc01f81df1f43307588ee6ca 100644 --- a/components/add-game-to-plan-list.tsx +++ b/components/add-game-to-plan-list.tsx @@ -1,9 +1,9 @@ "use client" +import { User } from "@prisma/client"; import { useRouter } from "next/navigation"; import { startTransition } from "react"; import { Button } from "./ui/button"; -import { User } from "@prisma/client"; export default function AddGameToPlanList(props: { gameId: string, user: User }) { @@ -86,7 +86,7 @@ export default function AddGameToPlanList(props: { gameId: string, user: User }) ) } } catch (error) { - throw new Error("Failed to check Planning-to-play-List"); + // throw new Error("Failed to check Planning-to-play-List"); } return ( diff --git a/components/add-game-to-playing-list.tsx b/components/add-game-to-playing-list.tsx index 1b2a3f8fac2a1b145f61134e1634f10d867a9b29..befa763ba9d55009cc9204bfc64e4588d92c42b8 100644 --- a/components/add-game-to-playing-list.tsx +++ b/components/add-game-to-playing-list.tsx @@ -1,9 +1,9 @@ "use client" +import { User } from "@prisma/client"; import { useRouter } from "next/navigation"; import { startTransition } from "react"; import { Button } from "./ui/button"; -import { User } from "@prisma/client"; export default function AddGameToPlayingList(props: { gameId: string, user: User }) { @@ -86,7 +86,7 @@ export default function AddGameToPlayingList(props: { gameId: string, user: User ) } } catch (error) { - throw new Error("Failed to check playing-to-play-List"); + // throw new Error("Failed to check playing-to-play-List"); } return ( diff --git a/components/addGameToFavList.tsx b/components/addGameToFavList.tsx index d41ab9191e12c619c72ea1eed4a101165dcdb2bb..67de93ed74eddbe8acb6113a8e521c38ac5fb588 100644 --- a/components/addGameToFavList.tsx +++ b/components/addGameToFavList.tsx @@ -67,7 +67,7 @@ export default function AddGameToFavList(props: { userGameList: Number[], gameId ) } } catch (error) { - throw new Error("Failed to check list"); + // throw new Error("Failed to check list"); } return (