working on restore form.

This commit is contained in:
killian-larcher
2024-11-17 19:13:51 +01:00
parent ff9e3ffa67
commit 5d19970373
19 changed files with 1381 additions and 32 deletions
@@ -13,9 +13,11 @@ import Link from "next/link";
export default async function RoutePage(props: PageParams<{ agentId: string }>) {
const {agentId} = await props.params
const agent = await prisma.agent.findUnique({
where: {
id: props.params.agentId,
id: agentId,
},
})
@@ -112,7 +114,7 @@ export default async function RoutePage(props: PageParams<{ agentId: string }>)
Last contact
</CardHeader>
<CardContent>
{agent.lastContact?.toDateString() ?? "Never connected"}
{agent.lastContact?.toDateString() ?? "Never connected."}
</CardContent>
</Card>
</div>