fix: clicking pfps doesn't work

This commit is contained in:
zkldi
2023-04-18 14:26:49 +01:00
parent f407f1e7f4
commit 157e4aed11
@@ -64,6 +64,11 @@ export function ProfilePictureSmall({
*/
toGPT?: string;
}) {
if (toGPT) {
// eslint-disable-next-line no-param-reassign
toGPT = `games/${toGPT}`;
}
if (typeof user === "string") {
return (
<Link to={`/u/${user}/${toGPT}`}>