diff --git a/js/components/whitelabel/wallet/components/cyland/cyland_landing.js b/js/components/whitelabel/wallet/components/cyland/cyland_landing.js index 1512587e..650fd88c 100644 --- a/js/components/whitelabel/wallet/components/cyland/cyland_landing.js +++ b/js/components/whitelabel/wallet/components/cyland/cyland_landing.js @@ -3,6 +3,10 @@ import React from 'react'; import Router from 'react-router'; + +import WhitelabelActions from '../../../../../actions/whitelabel_actions'; +import WhitelabelStore from '../../../../../stores/whitelabel_store'; + import ButtonLink from 'react-router-bootstrap/lib/ButtonLink'; import ButtonGroup from 'react-bootstrap/lib/ButtonGroup'; @@ -18,17 +22,21 @@ let CylandLanding = React.createClass({ getInitialState() { return mergeOptions( - UserStore.getState() + UserStore.getState(), + WhitelabelStore.getState() ); }, componentDidMount() { UserStore.listen(this.onChange); UserActions.fetchCurrentUser(); + WhitelabelStore.listen(this.onChange); + WhitelabelActions.fetchWhitelabel(); }, componentWillUnmount() { UserStore.unlisten(this.onChange); + WhitelabelStore.unlisten(this.onChange); }, onChange(state) { @@ -46,22 +54,29 @@ let CylandLanding = React.createClass({
Existing ascribe user? -
Do you need an account? -