fix(pending post page): opening settings would change theme

This commit is contained in:
Tom (plebeius.eth)
2024-08-06 22:03:19 +02:00
parent 62e041ae91
commit 5095e0e3b9
2 changed files with 1 additions and 8 deletions
-7
View File
@@ -256,13 +256,6 @@ const PostFormTable = ({ closeForm, postCid }: { closeForm: () => void; postCid:
}
}, [anonMode, getAnonAddressForPost, getAnonAddressForReply, isInPostView]);
useEffect(() => {
if (subplebbitAddress) {
resetSubmitStore();
resetPublishReplyOptions();
}
}, [subplebbitAddress, resetSubmitStore, resetPublishReplyOptions]);
return (
<table className={styles.postFormTable}>
<tbody>
+1 -1
View File
@@ -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 => {