fix: send down user as null for overview table to handle
This commit is contained in:
@@ -20,9 +20,6 @@ async function DynamicComponentBlock({ component }: DynamicComponentProps) {
|
||||
const session = await auth()
|
||||
|
||||
const user = session ? await serverClient().user.get() : null
|
||||
if (!user) {
|
||||
return null
|
||||
}
|
||||
|
||||
switch (component) {
|
||||
case LoyaltyComponentEnum.how_it_works:
|
||||
|
||||
Reference in New Issue
Block a user