From 194571e1329a36b61682ab1c5406969d48967492 Mon Sep 17 00:00:00 2001 From: Steven Date: Sun, 28 Jan 2024 15:45:18 +0800 Subject: [PATCH] chore: remove debug code --- frontend/web/src/pages/ShortcutSpace.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/web/src/pages/ShortcutSpace.tsx b/frontend/web/src/pages/ShortcutSpace.tsx index feade62..1ff4621 100644 --- a/frontend/web/src/pages/ShortcutSpace.tsx +++ b/frontend/web/src/pages/ShortcutSpace.tsx @@ -36,7 +36,8 @@ const ShortcutSpace = () => { navigateTo("/404"); return null; } - console.log("currentUser", currentUser); + + // If shortcut is not found, prompt user to create it. return ( <>
@@ -59,12 +60,14 @@ const ShortcutSpace = () => { ); } + // If shortcut is a URL, redirect to it directly. if (isURL(shortcut.link)) { window.document.title = "Redirecting..."; window.location.href = shortcut.link; return null; } + // Otherwise, render the shortcut link as plain text. return
{shortcut.link}
; };