fix
This commit is contained in:
		
							parent
							
								
									9962a415be
								
							
						
					
					
						commit
						48143a2d9a
					
				@ -44,10 +44,7 @@ function FeatureCard(props: {
 | 
			
		||||
export default async function Main() {
 | 
			
		||||
  const { userId } = await auth();
 | 
			
		||||
 | 
			
		||||
  if (!userId) {
 | 
			
		||||
    return <div>No auth</div>;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if (userId) {
 | 
			
		||||
    const user = await db.query.usersTable.findFirst({
 | 
			
		||||
      where: eq(usersTable.id, userId),
 | 
			
		||||
    });
 | 
			
		||||
@ -55,6 +52,7 @@ export default async function Main() {
 | 
			
		||||
    if (!user) {
 | 
			
		||||
      await setInitialUserData(userId);
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  return (
 | 
			
		||||
    <div className="flex flex-col w-full">
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user