chore: show table even with no devices

This commit is contained in:
Leandro Antônio Farias Machado 2023-09-15 11:01:20 -03:00
parent a6f741d4db
commit 0a5b86140c
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ const Page = () => {
.catch(error => console.error('Error:', error)); .catch(error => console.error('Error:', error));
}, [auth.user]); }, [auth.user]);
return (devices && return (
<> <>
<Head> <Head>
<title> <title>

View File

@ -72,7 +72,7 @@ export const OverviewLatestOrders = (props) => {
</TableRow> </TableRow>
</TableHead> </TableHead>
<TableBody> <TableBody>
{orders.map((order) => { {orders && orders.map((order) => {
return ( return (
<TableRow <TableRow