mirror of
https://github.com/wassname/talk.git
synced 2026-10-30 13:50:47 +08:00
Readd login fixes
This commit is contained in:
1 parent
81f51b69ec
commit
ec19618052
1 file changed
+9
-1
@@ -25,6 +25,14 @@ class ProfileContainer extends Component {
|
||||
};
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
if (this.props.auth.loggedIn !== nextProps.auth.loggedIn) {
|
||||
|
||||
// Refetch after login/logout.
|
||||
this.props.data.refetch();
|
||||
}
|
||||
}
|
||||
|
||||
handleTabChange = (tab) => {
|
||||
this.setState({
|
||||
activeTab: tab
|
||||
@@ -39,7 +47,7 @@ class ProfileContainer extends Component {
|
||||
return <NotLoggedIn showSignInDialog={showSignInDialog} />;
|
||||
}
|
||||
|
||||
if (data.loading) {
|
||||
if (!me || data.loading) {
|
||||
return <Spinner />;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user