More memoized requests
This commit is contained in:
@@ -3,10 +3,10 @@ import { getName } from "@/lib/trpc/memoizedRequests"
|
||||
import MyPagesSidebar from "@/components/MyPages/Sidebar"
|
||||
|
||||
export default async function MyPagesNavigation() {
|
||||
const username = await getName()
|
||||
const user = await getName()
|
||||
|
||||
// Check if we have user, that means we are logged in andt the My Pages menu can show.
|
||||
if (!username) {
|
||||
if (!user) {
|
||||
return null
|
||||
}
|
||||
return <MyPagesSidebar />
|
||||
|
||||
Reference in New Issue
Block a user