From 4741c660c3d3866e7e8aa5a7f28dd00b81d89aa5 Mon Sep 17 00:00:00 2001 From: KoalaSat Date: Fri, 15 Mar 2024 02:13:59 +0100 Subject: [PATCH] Fix order navbar (#1178) --- frontend/src/basic/NavBar/NavBar.tsx | 2 +- frontend/src/basic/RobotPage/RobotProfile.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/basic/NavBar/NavBar.tsx b/frontend/src/basic/NavBar/NavBar.tsx index b5a292e91..9cabcfd03 100644 --- a/frontend/src/basic/NavBar/NavBar.tsx +++ b/frontend/src/basic/NavBar/NavBar.tsx @@ -162,7 +162,7 @@ const NavBar = (): JSX.Element => { sx={tabSx} label={smallBar ? undefined : t('Order')} value='order' - disabled={!slot?.hashId || !slot?.getRobot(slot?.activeShortAlias ?? '')?.activeOrderId} + disabled={!slot?.getRobot()?.activeOrderId} icon={} iconPosition='start' /> diff --git a/frontend/src/basic/RobotPage/RobotProfile.tsx b/frontend/src/basic/RobotPage/RobotProfile.tsx index 7060e7a80..2ac4f354d 100644 --- a/frontend/src/basic/RobotPage/RobotProfile.tsx +++ b/frontend/src/basic/RobotPage/RobotProfile.tsx @@ -154,7 +154,7 @@ const RobotProfile = ({ )} - {loadingCoordinators > 0 ? ( + {loadingCoordinators > 0 && !Boolean(robot?.activeOrderId) ? ( {t('Looking for orders!')}