diff --git a/src/script/page/LeftSidebar/panels/Conversations/ConversationTabs/TeamCreation/TeamCreationBanner.tsx b/src/script/page/LeftSidebar/panels/Conversations/ConversationTabs/TeamCreation/TeamCreationBanner.tsx index 97069ea367b..ab082b1936d 100644 --- a/src/script/page/LeftSidebar/panels/Conversations/ConversationTabs/TeamCreation/TeamCreationBanner.tsx +++ b/src/script/page/LeftSidebar/panels/Conversations/ConversationTabs/TeamCreation/TeamCreationBanner.tsx @@ -57,7 +57,7 @@ const PADDING_Y = 34; export const TeamCreationBanner = () => { const [isBannerVisible, setIsBannerVisible] = useState(false); - const [position, setPosition] = useState<{x?: number; y?: number}>({}); + const [position, setPosition] = useState<{x: number; y: number}>({x: 0, y: 0}); const {status: sidebarStatus} = useSidebarStore(); const clickHandler = (event: React.MouseEvent) => { setIsBannerVisible(true); @@ -77,8 +77,8 @@ export const TeamCreationBanner = () => { {isBannerVisible && ( setIsBannerVisible(false)} >