diff --git a/frontend/app/Router.js b/frontend/app/Router.js index f66e0fda6..b2024c7d4 100644 --- a/frontend/app/Router.js +++ b/frontend/app/Router.js @@ -55,7 +55,6 @@ const ONBOARDING_PATH = routes.onboarding(); const jwt = state.get('jwt'); const changePassword = state.getIn([ 'user', 'account', 'changePassword' ]); const userInfoLoading = state.getIn([ 'user', 'fetchUserInfoRequest', 'loading' ]); - // const fetchingTenants = state.get('user', 'fetchTenantsRequest', 'loading'); return { jwt, siteId, diff --git a/frontend/app/components/Login/Login.js b/frontend/app/components/Login/Login.js index 81bc8109a..80cc6d12f 100644 --- a/frontend/app/components/Login/Login.js +++ b/frontend/app/components/Login/Login.js @@ -15,6 +15,7 @@ const recaptchaRef = React.createRef(); state => ({ errors: state.getIn([ 'user', 'loginRequest', 'errors' ]), loading: state.getIn([ 'user', 'loginRequest', 'loading' ]), + tenants: state.getIn(['user', 'tenants']) }), { login, }, ) @@ -44,7 +45,7 @@ export default class Login extends React.Component { write = ({ target: { value, name } }) => this.setState({ [ name ]: value }) render() { - const { errors, loading } = this.props; + const { errors, loading, tenants } = this.props; return (