Fix order navbar (#1178)

This commit is contained in:
KoalaSat 2024-03-15 02:13:59 +01:00 committed by GitHub
parent 0ac68d78c8
commit 4741c660c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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'
/>

View File

@ -154,7 +154,7 @@ const RobotProfile = ({
)}
</Grid>
{loadingCoordinators > 0 ? (
{loadingCoordinators > 0 && !Boolean(robot?.activeOrderId) ? (
<Grid>
<b>{t('Looking for orders!')}</b>
<LinearProgress />