diff --git a/src/screens/profile/container/profileContainer.js b/src/screens/profile/container/profileContainer.js index 80eff17d6..8df955291 100644 --- a/src/screens/profile/container/profileContainer.js +++ b/src/screens/profile/container/profileContainer.js @@ -44,14 +44,12 @@ class ProfileContainer extends Component { isReverseHeader, user: null, selectedQuickProfile: null, - activeTab: 0, }; } componentDidMount = () => { const { navigation, isLoggedIn, currentAccount } = this.props; const selectedUser = navigation.state && navigation.state.params; - const { isWalletTab } = navigation.state && navigation.state.params; if (!isLoggedIn && !selectedUser) { navigation.navigate(ROUTES.SCREENS.LOGIN); @@ -74,10 +72,6 @@ class ProfileContainer extends Component { } else { this._loadProfile(currentAccount.name); } - - if (isWalletTab) { - this.setState({ activeTab: 2 }); - } }; componentWillReceiveProps(nextProps) { @@ -334,14 +328,12 @@ class ProfileContainer extends Component { selectedQuickProfile, user, username, - activeTab, } = this.state; const { isDarkTheme, isLoggedIn, currency } = this.props; return ( <ProfileScreen about={user && user.about && user.about.profile} - activeTab={activeTab} avatar={avatar} comments={comments} currency={currency} diff --git a/src/screens/profile/screen/profileScreen.js b/src/screens/profile/screen/profileScreen.js index 4fd004590..a974f6887 100644 --- a/src/screens/profile/screen/profileScreen.js +++ b/src/screens/profile/screen/profileScreen.js @@ -84,7 +84,6 @@ class ProfileScreen extends PureComponent { selectedQuickProfile, selectedUser, username, - activeTab, } = this.props; const { @@ -120,9 +119,8 @@ class ProfileScreen extends PureComponent { if (estimatedWalletValue) { const { currencyRate, currencySymbol } = currency; - _estimatedWalletValue = `${currencySymbol} ${( - estimatedWalletValue * currencyRate - ).toFixed()}`; + _estimatedWalletValue = `${currencySymbol} ${(estimatedWalletValue * currencyRate).toFixed( + )}`; } return ( @@ -179,7 +177,6 @@ class ProfileScreen extends PureComponent { )} <ScrollableTabView - initialPage={activeTab || 0} style={[globalStyles.tabView, styles.tabView]} renderTabBar={() => ( <TabBar style={styles.tabbar} tabUnderlineDefaultWidth={80} tabUnderlineScaleX={2} />