fix(ui) - check for sso details on logout

This commit is contained in:
Shekar Siri 2021-12-05 20:13:33 +05:30
parent c2a1d2708e
commit 5f3f46d58c

View file

@ -86,15 +86,11 @@ class Router extends React.Component {
}
componentDidUpdate(prevProps) {
if (prevProps.email !== this.props.email) {
this.onLoginLogout();
if (prevProps.email !== this.props.email && !this.props.email) {
this.props.fetchTenants();
}
}
onLoginLogout() {
const { email, account, organisation } = this.props;
}
render() {
const { isLoggedIn, jwt, siteId, sites, loading, changePassword, location, existingTenant, onboarding } = this.props;
const siteIdList = sites.map(({ id }) => id).toJS();