fix: hydration error in upgrade card component

This commit is contained in:
javayhu 2025-04-15 01:07:13 +08:00
parent 731dd41de1
commit a1e9621195
2 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,7 @@ export function DashboardSidebar({ ...props }: React.ComponentProps<typeof Sideb
{!isPending && (
<>
{/* show upgrade card if user is not a member */}
<UpgradeCard />
{currentUser && <UpgradeCard />}
{/* show user profile if user is logged in */}
{currentUser && <SidebarUser user={currentUser} />}

View File

@ -1,3 +1,5 @@
'use client';
import { Button } from "@/components/ui/button";
import {
Card,