diff --git a/frontend/src/components/App.js b/frontend/src/components/App.js index 41208d2f7..7da43b3ec 100644 --- a/frontend/src/components/App.js +++ b/frontend/src/components/App.js @@ -122,7 +122,7 @@ export default class App extends Component { > - {/* */} + diff --git a/frontend/src/components/BottomBar.js b/frontend/src/components/BottomBar.js index 512c4a62b..7b7975a69 100644 --- a/frontend/src/components/BottomBar.js +++ b/frontend/src/components/BottomBar.js @@ -171,10 +171,12 @@ class BottomBar extends Component { showProfileButton = () => { return ( - this.props.avatarLoaded - // FIXME: Cookies not available on local dev - // (this.props.token ? getCookie('robot_token') == this.props.token : true) && - // getCookie('sessionid') + this.props.avatarLoaded && ( + window.NativeRobosats || ( + (this.props.token ? getCookie('robot_token') === this.props.token : true) && + getCookie('sessionid') + ) + ) ); }; diff --git a/frontend/src/components/UserGenPage.js b/frontend/src/components/UserGenPage.js index ef2fc7645..c54617079 100644 --- a/frontend/src/components/UserGenPage.js +++ b/frontend/src/components/UserGenPage.js @@ -100,7 +100,7 @@ class UserGenPage extends Component { : this.props.setAppState({ nickname: data.nickname, token, - avatarLoaded: true, + avatarLoaded: false, activeOrderId: data.active_order_id ? data.active_order_id : null, lastOrderId: data.last_order_id ? data.last_order_id : null, referralCode: data.referral_code, @@ -290,10 +290,10 @@ class UserGenPage extends Component { saveAsJson(this.state.nickname + '.json', this.createJsonFile()) @@ -311,10 +311,10 @@ class UserGenPage extends Component { copyToClipboard(getCookie('robot_token')) & @@ -369,10 +369,10 @@ class UserGenPage extends Component {