From 022caa4407c9e36b1b0e70a7f179cc0adbe68156 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Fri, 17 Dec 2021 10:55:18 -0800 Subject: [PATCH] Revert to URLs without `@` --- web/components/user-page.tsx | 3 +-- web/lib/firebase/contracts.ts | 2 +- web/pages/[username]/index.tsx | 5 +---- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/web/components/user-page.tsx b/web/components/user-page.tsx index 833b7364..484fa0b9 100644 --- a/web/components/user-page.tsx +++ b/web/components/user-page.tsx @@ -12,11 +12,10 @@ import { SEO } from './SEO' export function UserLink(props: { displayName: string; className?: string }) { const { displayName, className } = props - // Fix this when users can change their own names const username = displayName.replace(/\s+/g, '') return ( - + ('loading') - + const { username } = router.query as { username: string } useEffect(() => { if (username) { getUserByUsername(username).then(setUser)