Skip to content

Commit

Permalink
Fix order navbar (#1178)
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat authored Mar 15, 2024
1 parent 0ac68d7 commit 4741c66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/basic/NavBar/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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={<Assignment />}
iconPosition='start'
/>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/basic/RobotPage/RobotProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const RobotProfile = ({
)}
</Grid>

{loadingCoordinators > 0 ? (
{loadingCoordinators > 0 && !Boolean(robot?.activeOrderId) ? (
<Grid>
<b>{t('Looking for orders!')}</b>
<LinearProgress />
Expand Down

0 comments on commit 4741c66

Please sign in to comment.