diff --git a/packages/components/navigation/getNormalModeScreens.tsx b/packages/components/navigation/getNormalModeScreens.tsx index d19e32342..c7145bb14 100644 --- a/packages/components/navigation/getNormalModeScreens.tsx +++ b/packages/components/navigation/getNormalModeScreens.tsx @@ -9,7 +9,7 @@ import { CoreDAOScreen } from "@/screens/CoreDAO/CoreDAOScreen"; import { DAppStoreScreen } from "@/screens/DAppStore/DAppStoreScreen"; import { ToriPunks } from "@/screens/DAppStore/apps/toripunks/HomeScreen"; import { FeedScreen } from "@/screens/Feed/FeedScreen"; -import { FeedNewArticleScreen } from "@/screens/FeedNewArticle/FeedNewArticleScreen.tsx"; +import { FeedNewArticleScreen } from "@/screens/FeedNewArticle/FeedNewArticleScreen"; import { FeedPostViewScreen } from "@/screens/FeedPostView/FeedPostViewScreen"; import { GovernanceProposalScreen } from "@/screens/Governance/GovernanceProposal/GovernanceProposalScreen"; import { GovernanceScreen } from "@/screens/Governance/GovernanceScreen"; diff --git a/packages/screens/FeedNewArticle/FeedNewArticleScreen.tsx b/packages/screens/FeedNewArticle/FeedNewArticleScreen.tsx index b76d78998..a100aef3a 100644 --- a/packages/screens/FeedNewArticle/FeedNewArticleScreen.tsx +++ b/packages/screens/FeedNewArticle/FeedNewArticleScreen.tsx @@ -129,6 +129,8 @@ export const FeedNewArticleScreen: ScreenFC<"FeedNewArticle"> = () => { mentions: [], }; + const navigateBack = () => navigation.navigate("Feed"); + const onPublish = async () => { const action = "Publish an Article"; if (!wallet?.address || !wallet.connected) { @@ -208,7 +210,7 @@ export const FeedNewArticleScreen: ScreenFC<"FeedNewArticle"> = () => { mobileTitle="NEW ARTICLE" fullWidth headerChildren={New Article} - onBackPress={() => navigation.navigate("Feed")} + onBackPress={navigateBack} footerChildren noMargin noScroll diff --git a/packages/screens/FeedPostView/components/FeedPostArticleMarkdownView.tsx b/packages/screens/FeedPostView/components/FeedPostArticleMarkdownView.tsx index 328077b97..56cc6fc7e 100644 --- a/packages/screens/FeedPostView/components/FeedPostArticleMarkdownView.tsx +++ b/packages/screens/FeedPostView/components/FeedPostArticleMarkdownView.tsx @@ -163,7 +163,7 @@ export const FeedPostArticleMarkdownView: FC<{ isNextPageAvailable.value = hasNextPage; }, [hasNextPage, isNextPageAvailable]); - if (!articleMetadata) return null; + if (!articleMetadata || !message) return null; return (