Skip to content

Commit a7cf25e

Browse files
authored
fix: do not display WelcomeCollective component on children collectives (#11771)
1 parent 966131f commit a7cf25e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/dashboard/sections/overview/Welcome.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,10 @@ export const WelcomeCollective = ({ account: _account, setOpen, open }) => {
400400
}
401401
}, [data?.account, open, setOpen, LoggedInUser]);
402402

403+
if (_account?.parent) {
404+
return null;
405+
}
406+
403407
return (
404408
<Collapsible open={open} onOpenChange={setOpen}>
405409
<CollapsibleContent>

0 commit comments

Comments
 (0)