From 41c7fde4ba1e18feefe31b8d245705ccb8214f25 Mon Sep 17 00:00:00 2001 From: Jared Schoeny Date: Wed, 29 Oct 2025 22:19:04 -1000 Subject: [PATCH] Fix some missing `@` for usernames --- src/app/hack/[slug]/page.tsx | 2 +- src/components/Hack/StickyActionBar.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/hack/[slug]/page.tsx b/src/app/hack/[slug]/page.tsx index 1824241..2138d48 100644 --- a/src/app/hack/[slug]/page.tsx +++ b/src/app/hack/[slug]/page.tsx @@ -70,7 +70,7 @@ export default async function HackDetail({ params }: HackDetailProps) { .select("username") .eq("id", hack.created_by as string) .maybeSingle(); - const author = profile?.username || "Unknown"; + const author = profile?.username ? `@${profile.username}` : "Unknown"; const { data: { user }, diff --git a/src/components/Hack/StickyActionBar.tsx b/src/components/Hack/StickyActionBar.tsx index 508dcb6..267969e 100644 --- a/src/components/Hack/StickyActionBar.tsx +++ b/src/components/Hack/StickyActionBar.tsx @@ -65,7 +65,7 @@ export default function StickyActionBar({ title, version, author, baseRomName, b {version} )} -
By @{author}
+
By {author}