From 9d2555c44d9e2ac735b62c2aeb23d31a1c1ffccd Mon Sep 17 00:00:00 2001 From: Antoine Lelong Date: Thu, 5 Dec 2024 17:18:40 +0100 Subject: [PATCH] fix: remove console logs and checking for conditional link for order --- webapp/src/components/ui/BackButton.tsx | 1 - webapp/src/pages/dashboard/account/history.tsx | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/webapp/src/components/ui/BackButton.tsx b/webapp/src/components/ui/BackButton.tsx index d96716dc..fbfe6379 100644 --- a/webapp/src/components/ui/BackButton.tsx +++ b/webapp/src/components/ui/BackButton.tsx @@ -17,7 +17,6 @@ const BackButton = (props: BackButtonProps) => { const [canGoBack, setCanGoBack] = useState(false); useEffect(() => { - console.log("window.history.length", window.history); setCanGoBack(window.history.length > 1); }, []); diff --git a/webapp/src/pages/dashboard/account/history.tsx b/webapp/src/pages/dashboard/account/history.tsx index a7bb3bee..2e7b3c5b 100644 --- a/webapp/src/pages/dashboard/account/history.tsx +++ b/webapp/src/pages/dashboard/account/history.tsx @@ -148,7 +148,7 @@ export default function AccountHistory() { mt={4} > - {"used" in userHistoryItem && - !userHistoryItem.used ? ( + {!userHistoryItem.used ? (