diff --git a/frontend/src/basic/OrderPage/index.tsx b/frontend/src/basic/OrderPage/index.tsx index fcbc0331..d17363fc 100644 --- a/frontend/src/basic/OrderPage/index.tsx +++ b/frontend/src/basic/OrderPage/index.tsx @@ -70,7 +70,7 @@ const OrderPage = (): React.JSX.Element => { return () => { setCurrentOrder(null); }; - }, [params.orderId, openNoRobot]); + }, [params.orderId, openNoRobot, garage.currentSlot]); useEffect(() => { if (!currentOrder) return; diff --git a/frontend/src/basic/RobotPage/RobotProfile.tsx b/frontend/src/basic/RobotPage/RobotProfile.tsx index a5d0aace..d62ee9ef 100644 --- a/frontend/src/basic/RobotPage/RobotProfile.tsx +++ b/frontend/src/basic/RobotPage/RobotProfile.tsx @@ -6,13 +6,13 @@ import { Grid, LinearProgress, Typography, - Alert, Select, MenuItem, Box, useTheme, type SelectChangeEvent, IconButton, + Tooltip, } from '@mui/material'; import { Key, Bolt, Add, DeleteSweep, Download, Settings } from '@mui/icons-material'; import RobotAvatar from '../../components/RobotAvatar'; @@ -158,7 +158,8 @@ const RobotProfile = ({ - {robot?.found && Boolean(slot?.lastOrder?.id) ? ( - - {t('Welcome back!')} - - ) : ( - <> - )} - {federation.loading && !slot?.activeOrder?.id ? ( + {federation.loading && !slot?.activeOrder && !slot?.lastOrder ? ( {t('Looking for orders!')} @@ -202,7 +202,7 @@ const RobotProfile = ({ ) : null} - {!slot?.activeOrder?.id && Boolean(slot?.lastOrder?.id) ? ( + {!slot?.activeOrder && slot?.lastOrder ? (