mirror of
https://github.com/Hackdex-App/hackdex-website.git
synced 2026-06-23 15:49:58 -05:00
Fix some missing @ for usernames
This commit is contained in:
parent
5175dd0637
commit
41c7fde4ba
|
|
@ -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 },
|
||||
|
|
|
|||
|
|
@ -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 ${
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user