Skip to content

Commit 53d8777

Browse files
committed
not render dashboardcompleterenderprofile if completed
1 parent 62ffb69 commit 53d8777

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎apps/codebility/app/home/(dashboard)/_components/DashboardCompleteProfile.tsx‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ export default function DashboardCompleteProfile({
248248
);
249249
}
250250

251+
if (allTasksCompleted && visibleTasks.length === 0) {
252+
return null; // Don't render anything if all tasks are completed and none are visible
253+
}
254+
251255
return (
252256
<Box className="flex w-full flex-1 flex-col gap-6 relative overflow-hidden">
253257
<div className="space-y-4">

0 commit comments

Comments
 (0)