From 0edda241d70f2ffb275de63cc63a7b4e78ac9932 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Yusuf=20Akg=C3=BCl?= <yusuf.akguel@adesso.de>
Date: Thu, 22 Jun 2023 14:41:43 +0200
Subject: [PATCH] possible fix

---
 components/add-game-to-finished-list.tsx | 4 ++--
 components/add-game-to-plan-list.tsx     | 4 ++--
 components/add-game-to-playing-list.tsx  | 4 ++--
 components/addGameToFavList.tsx          | 2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/components/add-game-to-finished-list.tsx b/components/add-game-to-finished-list.tsx
index 28b9477..40b4e1d 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 7edde00..b2c1e45 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 1b2a3f8..befa763 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 d41ab91..67de93e 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 (
-- 
GitLab