Update [type].tsx (#7387)

This commit is contained in:
Omar López
2023-02-24 13:06:57 -07:00
committed by GitHub
parent 4edc973876
commit b2b846647d
+2 -1
View File
@@ -70,7 +70,8 @@ async function getUserPageProps(context: GetStaticPropsContext) {
const user = await prisma.user.findUnique({
where: {
username,
/** TODO: We should standarize this */
username: username.toLowerCase().replace(/( |%20)/g, "+"),
},
select: {
id: true,