From 5faffc20ee1c22ea97020004f07c6281e11f363a Mon Sep 17 00:00:00 2001 From: corpulent Date: Thu, 28 Jul 2022 18:54:19 +0300 Subject: [PATCH] fix: pretty error on missing project --- .../frontend/src/components/Project/index.tsx | 29 ++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/services/frontend/src/components/Project/index.tsx b/services/frontend/src/components/Project/index.tsx index 25b6d10..90beab4 100644 --- a/services/frontend/src/components/Project/index.tsx +++ b/services/frontend/src/components/Project/index.tsx @@ -449,7 +449,7 @@ export default function Project() { -
+
-
+ +
@@ -558,8 +559,28 @@ export default function Project() {
); - } else { - return <>Something went wrong; + } + + if (error) { + return ( +
+

+ Something went wrong... +

+

+ Either this project does not exist, or the link is wrong. +

+
+ ); } }