Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
Vann-Dev committed May 5, 2024
1 parent 4947359 commit baefc78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/dashboard/account/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function Layout({
}
});
}
}, [])
}, [fetched, router])

if (!userData) {
return (
Expand Down
4 changes: 2 additions & 2 deletions app/dashboard/admin/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function Page() {
}
});
}
}, [])
}, [fetched, router])

function addAccount() {
setAddDialogOpen(true);
Expand Down Expand Up @@ -118,7 +118,7 @@ export default function Page() {
</TableHeader>
<TableBody>
{accountsData?.data.map((account) => (
<TableRow>
<TableRow key={account.id}>
<TableCell className="font-medium">{account.id}</TableCell>
<TableCell>{account.email}</TableCell>
<TableCell className='text-right'>{new Date(account.createdAt).toLocaleString()}</TableCell>
Expand Down

0 comments on commit baefc78

Please sign in to comment.