diff --git a/src/components/delegatesV2/delegatesV2.js b/src/components/delegatesV2/delegatesV2.js
index 9571005573..a655587d47 100644
--- a/src/components/delegatesV2/delegatesV2.js
+++ b/src/components/delegatesV2/delegatesV2.js
@@ -46,16 +46,19 @@ class DelegatesV2 extends React.Component {
}];
}
render() {
- const { t, votes } = this.props;
+ const { t, votes, account } = this.props;
const { votingModeEnabled } = this.state;
return (
{ this.root = el; }}>
-
+ { account && account.address ?
+ :
+ null
+ }
{
let wrapper;
@@ -65,5 +66,12 @@ describe('DelegatesV2', () => {
wrapper.find('.cancel-voting-button').at(0).simulate('click');
expect(wrapper.find('.addedVotes')).to.have.lengthOf(0);
});
+
+ it('should show onboarding if not in guest mode', () => {
+ wrapper = mount(
+
+ , options);
+ expect(wrapper.find('Onboarding')).to.have.lengthOf(1);
+ });
});
diff --git a/src/components/delegatesV2/index.js b/src/components/delegatesV2/index.js
index f1313bf126..e7e32f52b4 100644
--- a/src/components/delegatesV2/index.js
+++ b/src/components/delegatesV2/index.js
@@ -6,6 +6,7 @@ import { clearVotes } from '../../actions/voting';
const mapStateToProps = state => ({
votes: state.voting.votes,
+ account: state.account,
});
const mapDispatchToProps = {