fix: grids and lists in rte
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { login } from "@/constants/routes/handleAuth"
|
||||
import { serverClient } from "@/lib/trpc/server"
|
||||
|
||||
import { auth } from "@/auth"
|
||||
import ArrowRight from "@/components/Icons/ArrowRight"
|
||||
import { ScandicFriends } from "@/components/Levels"
|
||||
import Button from "@/components/TempDesignSystem/Button"
|
||||
@@ -21,9 +20,10 @@ export default async function JoinLoyaltyContact({
|
||||
lang,
|
||||
}: JoinLoyaltyContactProps & LangParams) {
|
||||
const { formatMessage } = await getIntl()
|
||||
const session = await auth()
|
||||
const user = await serverClient().user.name()
|
||||
|
||||
if (session) {
|
||||
// Check if we have user, that means we are logged in.
|
||||
if (user) {
|
||||
return null
|
||||
}
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user