diff --git a/packages/concordia-app/src/components/PostCreate/index.jsx b/packages/concordia-app/src/components/PostCreate/index.jsx index aadf71d..b84217b 100644 --- a/packages/concordia-app/src/components/PostCreate/index.jsx +++ b/packages/concordia-app/src/components/PostCreate/index.jsx @@ -105,7 +105,9 @@ const PostCreate = (props) => { }); } } - }, [createPostCacheSendStackId, postContent, postSubject, posting, transactionStack, transactions]); + }, [ + createPostCacheSendStackId, initialPostSubject, postContent, postSubject, posting, transactionStack, transactions, + ]); const savePost = useCallback(() => { if (postSubject === '') { diff --git a/packages/concordia-app/src/components/PostList/PostListRow/index.jsx b/packages/concordia-app/src/components/PostList/PostListRow/index.jsx index 06b5bdb..4549dc7 100644 --- a/packages/concordia-app/src/components/PostList/PostListRow/index.jsx +++ b/packages/concordia-app/src/components/PostList/PostListRow/index.jsx @@ -7,7 +7,6 @@ import { import PropTypes from 'prop-types'; import { useTranslation } from 'react-i18next'; import moment from 'moment'; -import { useHistory } from 'react-router'; import { useDispatch, useSelector } from 'react-redux'; import { Link } from 'react-router-dom'; import { FETCH_USER_DATABASE } from '../../../redux/actions/peerDbReplicationActions'; @@ -35,7 +34,6 @@ const PostListRow = (props) => { const posts = useSelector((state) => state.orbitData.posts); const users = useSelector((state) => state.orbitData.users); const dispatch = useDispatch(); - const history = useHistory(); const { t } = useTranslation(); useEffect(() => { @@ -150,7 +148,9 @@ const PostListRow = (props) => { - ), [authorAvatarLink, loading, postAuthor, postContent, postIndexInTopic, postSubject, t, timeAgo]); + ), [ + authorAvatarLink, loading, postAuthor, postAuthorAddress, postContent, postIndexInTopic, postSubject, t, timeAgo, + ]); }; PostListRow.defaultProps = { diff --git a/packages/concordia-app/src/options/web3Options.js b/packages/concordia-app/src/options/web3Options.js index 49d20fa..1957de8 100644 --- a/packages/concordia-app/src/options/web3Options.js +++ b/packages/concordia-app/src/options/web3Options.js @@ -3,7 +3,9 @@ import Web3 from 'web3'; const { WEB3_URL, WEB3_PORT } = process.env; // We need fallback ws://127.0.0.1:8545 because drizzle has not the patched web3 we use here -const web3 = (WEB3_URL && WEB3_PORT) ? `ws://${WEB3_URL}:${WEB3_PORT}` : new Web3(Web3.givenProvider || new Web3.providers.WebsocketProvider('ws://127.0.0.1:8545')); +const web3 = (WEB3_URL && WEB3_PORT) + ? `ws://${WEB3_URL}:${WEB3_PORT}` + : new Web3(Web3.givenProvider || new Web3.providers.WebsocketProvider('ws://127.0.0.1:8545')); const web3Options = { web3, diff --git a/packages/concordia-app/src/views/Topic/TopicView/index.jsx b/packages/concordia-app/src/views/Topic/TopicView/index.jsx index 9f4ddb3..885fb82 100644 --- a/packages/concordia-app/src/views/Topic/TopicView/index.jsx +++ b/packages/concordia-app/src/views/Topic/TopicView/index.jsx @@ -5,7 +5,6 @@ import { Container, Dimmer, Icon, Image, Placeholder, Step, } from 'semantic-ui-react'; import moment from 'moment'; -import { useHistory } from 'react-router'; import { Link } from 'react-router-dom'; import { breeze, drizzle } from '../../../redux/store'; import { FETCH_USER_DATABASE } from '../../../redux/actions/peerDbReplicationActions'; @@ -38,7 +37,6 @@ const TopicView = (props) => { const [timestamp, setTimestamp] = useState(initialTimestamp || null); const [postIds, setPostIds] = useState(initialPostIds || null); const [topicSubject, setTopicSubject] = useState(null); - const history = useHistory(); const dispatch = useDispatch(); useEffect(() => {