diff --git a/src/components/post-form/post-form.tsx b/src/components/post-form/post-form.tsx index e1b6b1a3..48970b6e 100644 --- a/src/components/post-form/post-form.tsx +++ b/src/components/post-form/post-form.tsx @@ -256,13 +256,6 @@ const PostFormTable = ({ closeForm, postCid }: { closeForm: () => void; postCid: } }, [anonMode, getAnonAddressForPost, getAnonAddressForReply, isInPostView]); - useEffect(() => { - if (subplebbitAddress) { - resetSubmitStore(); - resetPublishReplyOptions(); - } - }, [subplebbitAddress, resetSubmitStore, resetPublishReplyOptions]); - return ( diff --git a/src/lib/utils/view-utils.ts b/src/lib/utils/view-utils.ts index 08fb3bfa..753d56bb 100644 --- a/src/lib/utils/view-utils.ts +++ b/src/lib/utils/view-utils.ts @@ -62,7 +62,7 @@ export const isHomeView = (pathname: string): boolean => { }; export const isPendingPostView = (pathname: string, params: ParamsType): boolean => { - return pathname === `/profile/${params.accountCommentIndex}`; + return pathname === `/profile/${params.accountCommentIndex}` || pathname === `/profile/${params.accountCommentIndex}/settings`; }; export const isPostPageView = (pathname: string, params: ParamsType): boolean => {