mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 12:51:42 +03:00
Comment requirements
This commit is contained in:
parent
c04a98a214
commit
f9e6e2289c
@ -79,7 +79,8 @@ class ProfileContainer extends Component {
|
||||
componentWillReceiveProps(nextProps) {
|
||||
const { activeBottomTab, currentAccount, isLoggedIn, navigation } = this.props;
|
||||
const currentUsername =
|
||||
currentAccount.name !== nextProps.currentAccount.name && nextProps.currentAccount.name;
|
||||
get(currentAccount, 'name') !== nextProps.currentAccount.name &&
|
||||
nextProps.currentAccount.name;
|
||||
|
||||
if (isLoggedIn && !nextProps.isLoggedIn) {
|
||||
navigation.navigate(ROUTES.SCREENS.LOGIN);
|
||||
@ -87,8 +88,8 @@ class ProfileContainer extends Component {
|
||||
}
|
||||
|
||||
if (
|
||||
(activeBottomTab !== nextProps.activeBottomTab &&
|
||||
nextProps.activeBottomTab === ROUTES.TABBAR.PROFILE) ||
|
||||
(activeBottomTab !== get(nextProps, 'activeBottomTab') &&
|
||||
get(nextProps, 'activeBottomTab') === ROUTES.TABBAR.PROFILE) ||
|
||||
currentUsername
|
||||
) {
|
||||
this._loadProfile(currentAccount.name);
|
||||
|
Loading…
Reference in New Issue
Block a user