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));
}, [auth.user]);
return (devices &&
return (
<>
<Head>
<title>

View File

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