From 19f94110b70060beee2d75ba740b7a516376a132 Mon Sep 17 00:00:00 2001 From: diminator Date: Mon, 28 Sep 2015 16:57:35 +0200 Subject: [PATCH] fix: ikonotv redirect to collection if logged in --- .../whitelabel/wallet/components/ikonotv/ikonotv_landing.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/components/whitelabel/wallet/components/ikonotv/ikonotv_landing.js b/js/components/whitelabel/wallet/components/ikonotv/ikonotv_landing.js index e991233a..0f5d129a 100644 --- a/js/components/whitelabel/wallet/components/ikonotv/ikonotv_landing.js +++ b/js/components/whitelabel/wallet/components/ikonotv/ikonotv_landing.js @@ -6,6 +6,7 @@ import Router from 'react-router'; import ButtonLink from 'react-router-bootstrap/lib/ButtonLink'; import UserStore from '../../../../../stores/user_store'; +import UserActions from '../../../../../actions/user_actions'; import { getLangText } from '../../../../../utils/lang_utils'; @@ -20,6 +21,7 @@ let IkonotvLanding = React.createClass({ componentDidMount() { UserStore.listen(this.onChange); + UserActions.fetchCurrentUser(); }, componentWillUnmount() { @@ -32,7 +34,7 @@ let IkonotvLanding = React.createClass({ getEnterButton() { let redirect = 'login'; - + console.log(this.state) if(this.state.currentUser && this.state.currentUser.email) { redirect = 'pieces'; }