diff --git a/app/soapbox/features/groups/timeline/index.js b/app/soapbox/features/groups/timeline/index.js index 0576e99c6..c9f7d08cd 100644 --- a/app/soapbox/features/groups/timeline/index.js +++ b/app/soapbox/features/groups/timeline/index.js @@ -1,6 +1,6 @@ import React from 'react'; import { connect } from 'react-redux'; -import { NavLink } from 'react-router-dom'; +import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusListContainer from '../../ui/containers/status_list_container'; @@ -81,15 +81,15 @@ class GroupTimeline extends React.PureComponent { ); } - const acct = account.get('acct'); + const acct = account ? account.get('acct') : ''; return (
{relationships.get('member') && (
- + - +
)} diff --git a/app/soapbox/pages/home_page.js b/app/soapbox/pages/home_page.js index e7f3b4c3d..fc630d658 100644 --- a/app/soapbox/pages/home_page.js +++ b/app/soapbox/pages/home_page.js @@ -1,6 +1,6 @@ import React from 'react'; import { connect } from 'react-redux'; -import { NavLink } from 'react-router-dom'; +import { Link } from 'react-router-dom'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ComposeFormContainer from '../features/compose/containers/compose_form_container'; import Avatar from '../components/avatar'; @@ -47,7 +47,7 @@ class HomePage extends ImmutablePureComponent { render() { const { me, children, account, showFundingPanel, showCryptoDonatePanel, cryptoLimit, showTrendsPanel, showWhoToFollowPanel } = this.props; - const acct = account.get('acct'); + const acct = account ? account.get('acct') : ''; return (
@@ -65,9 +65,9 @@ class HomePage extends ImmutablePureComponent {
{me &&
- + - +