From 020252a9021a3c575963f0972e5d21ad38c8c58e Mon Sep 17 00:00:00 2001 From: codeKraken <160219759+codeKraken19@users.noreply.github.com> Date: Tue, 27 Apr 1976 17:45:07 +0000 Subject: [PATCH 1/2] add proper error log Signed-off-by: codeKraken <160219759+codeKraken19@users.noreply.github.com> --- site/src/components/Navigation/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/components/Navigation/index.js b/site/src/components/Navigation/index.js index 56c7437..6ae4fec 100644 --- a/site/src/components/Navigation/index.js +++ b/site/src/components/Navigation/index.js @@ -54,7 +54,7 @@ function Navigation({ theme, toggleTheme, showSignUpButton }) { const data = response.data; setUserData(data); } catch (error) { - console.error("There was a problem with your fetch operation:", error); + console.error("There was a problem with your fetch operation: ", error?.toString?.(), error ); } }; From dd1c47749e11420e2c1589da7546e4b09981f0dc Mon Sep 17 00:00:00 2001 From: codeKraken <160219759+codeKraken19@users.noreply.github.com> Date: Sun, 7 Apr 2024 17:46:14 +0000 Subject: [PATCH 2/2] remove dead code Signed-off-by: codeKraken <160219759+codeKraken19@users.noreply.github.com> --- site/src/components/Navigation/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/site/src/components/Navigation/index.js b/site/src/components/Navigation/index.js index 6ae4fec..5af8e4e 100644 --- a/site/src/components/Navigation/index.js +++ b/site/src/components/Navigation/index.js @@ -165,7 +165,6 @@ function Navigation({ theme, toggleTheme, showSignUpButton }) { Sign Up )} - {/* Login */}