fix profile link url (#353)

This commit is contained in:
saml33 2022-07-09 21:04:15 +10:00 committed by GitHub
parent d1ba279e6f
commit 41e3ae18ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -337,7 +337,10 @@ export default function Account() {
{pubkey && mangoAccount ? ( {pubkey && mangoAccount ? (
profileData && !loadProfileDetails ? ( profileData && !loadProfileDetails ? (
<Link <Link
href={`/profile?pk=${mangoAccount.owner.toString()}`} href={`/profile?name=${profileData?.profile_name.replace(
/\s/g,
'-'
)}`}
shallow={true} shallow={true}
> >
<a className="default-transition mt-2 flex items-center space-x-2 text-th-fgd-3 hover:text-th-fgd-2"> <a className="default-transition mt-2 flex items-center space-x-2 text-th-fgd-3 hover:text-th-fgd-2">