Merged in fix/my-stay-webview-2 (pull request #2191)
fix: webview - mystay - check if we have webviewToken * fix: webview - mystay - check if we have webviewToken * Cleanup Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
import { Suspense } from "react"
|
||||
|
||||
import { auth } from "@/auth"
|
||||
import MyPagesSidebar from "@/components/MyPages/Sidebar"
|
||||
import { isValidSession } from "@/utils/session"
|
||||
import { isLoggedInUser } from "@/utils/isLoggedInUser"
|
||||
|
||||
import SidebarNavigationSkeleton from "../MyPages/Sidebar/SidebarNavigationSkeleton"
|
||||
|
||||
export default async function MyPagesNavigation() {
|
||||
const session = await auth()
|
||||
if (!isValidSession(session)) {
|
||||
const isLoggedIn = await isLoggedInUser()
|
||||
if (!isLoggedIn) {
|
||||
return null
|
||||
}
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user