FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.
C++ ai-agentsalgorithmic-tradingbloomberg-terminalcppfinancefinancial-marketsfintechgood-first-issueinvestmentinvestment-researchmachine-learningopensourcepythonqtquantitative-financestock-markettrading
forum update
tilakpatel228694ffa802dd
diff --git a/fincept-terminal-desktop/src/components/tabs/ForumTab.tsx b/fincept-terminal-desktop/src/components/tabs/ForumTab.tsxindex 02c461790..d82b6776e 100644--- a/fincept-terminal-desktop/src/components/tabs/ForumTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/ForumTab.tsx@@ -242,7 +242,7 @@ const ForumTab: React.FC = () => {}if (response?.success && response.data) {- const posts = response.data.posts || [];+ const posts = (response.data as any).posts || [];console.log('[Forum] Fetched posts:', posts.length);const formattedPosts = posts.map(convertApiPostToUIFormat);setForumPosts(formattedPosts);@@ -615,17 +615,17 @@ const ForumTab: React.FC = () => {setTimeout(async () => {const post = forumPosts.find(p => p.id === selectedPostId);if (post) {- handlePostClick(post);+ handleViewPost(post);} else {// Try to fetch the post details directlytry {const { apiKey, deviceId } = getApiCredentials();const response = await ForumApiService.getPostDetails(selectedPostId, apiKey, deviceId);if (response.success && response.data) {- const apiPost = response.data.data?.post || response.data.post;+ const apiPost = (response.data as any).data?.post || (response.data as any).post;const post = convertApiPostToUIFormat(apiPost);setSelectedPost(post);- const comments = (response.data.data?.comments || response.data.comments || []).map(convertApiCommentToUIFormat);+ const comments = ((response.data as any).data?.comments || (response.data as any).comments || []).map(convertApiCommentToUIFormat);setPostComments(comments);setShowPostDetail(true);}