Skip to content

Commit

Permalink
fix: remove console logs and checking for conditional link for order
Browse files Browse the repository at this point in the history
  • Loading branch information
HoreKk committed Dec 5, 2024
1 parent 59220e8 commit 9d2555c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion webapp/src/components/ui/BackButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}, []);

Expand Down
5 changes: 2 additions & 3 deletions webapp/src/pages/dashboard/account/history.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export default function AccountHistory() {
mt={4}
>
<ConditionalLink
condition={"status" in userHistoryItem}
condition={"number" in userHistoryItem}
to={`/dashboard/order/${userHistoryItem.id}?from=history`}
props={{
width: "full",
Expand Down Expand Up @@ -178,8 +178,7 @@ export default function AccountHistory() {
{userHistoryItem.offer.title}
</Text>
<Box mt={1}>
{"used" in userHistoryItem &&
!userHistoryItem.used ? (
{!userHistoryItem.used ? (
<Flex
alignItems="center"
color="disabled"
Expand Down

0 comments on commit 9d2555c

Please sign in to comment.