diff --git a/apps/forge/src/routes/_authenticated/_reponly/users/$id.tsx b/apps/forge/src/routes/_authenticated/_reponly/users/$id.tsx index 4db0f3c..7a0ea38 100644 --- a/apps/forge/src/routes/_authenticated/_reponly/users/$id.tsx +++ b/apps/forge/src/routes/_authenticated/_reponly/users/$id.tsx @@ -1,8 +1,8 @@ import { UserAvatar } from "@/components/avatar"; import { LocationIcon } from "@/components/icons/Locations"; -import SignInsChart from "@/routes/_authenticated/_reponly/signin/dashboard/-components/SignInsChart.tsx"; import Title from "@/components/title"; import { extractError } from "@/lib/utils"; +import SignInsChart from "@/routes/_authenticated/_reponly/signin/dashboard/-components/SignInsChart.tsx"; import { getUser } from "@/services/users/getUser.ts"; import getUserSignIns from "@/services/users/getUserSignIns.ts"; import { getUserTraining } from "@/services/users/getUserTraining.ts"; @@ -102,7 +102,7 @@ export default function Component() { Name Location Compulsory - {rep ? Rep Training : undefined} + {rep && Rep Training} Completed On Completed In Person On Renewal Due @@ -113,7 +113,7 @@ export default function Component() { .sort((a, b) => a.name.localeCompare(b.name)) .map((training) => training["@created_at"] ? ( - +
{training.name}
@@ -125,13 +125,13 @@ export default function Component() { {training.compulsory ? : } - {rep ? ( // FIXME this is mostly broken + {rep && ( // TODO if user training is a pre-req to rep training we can collapse the 2 into one entry.
{training.rep ? : }
- ) : undefined} + )}
{new Date(training["@created_at"]).toLocaleDateString()}