Fix some missing @ for usernames

This commit is contained in:
Jared Schoeny 2025-10-29 22:19:04 -10:00
parent 5175dd0637
commit 41c7fde4ba
2 changed files with 2 additions and 2 deletions

View File

@ -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 },

View File

@ -65,7 +65,7 @@ export default function StickyActionBar({ title, version, author, baseRomName, b
<span className="shrink-0 rounded-full bg-[var(--surface-2)] ml-auto md:ml-0 px-2 py-0.5 text-[11px] font-medium text-foreground/85 ring-1 ring-[var(--border)]">{version}</span>
)}
</div>
<div className="truncate text-sm md:text-xs text-foreground/60">By @{author}</div>
<div className="truncate text-sm md:text-xs text-foreground/60">By {author}</div>
</div>
<div className="flex w-full md:w-auto flex-col md:flex-row md:flex-wrap items-stretch md:items-center gap-2 mb-4 md:mb-0">
<span className={`rounded-full mx-auto md:mx-0 px-2 py-0.5 text-xs ring-1 ${