diff --git a/web/src/App.js b/web/src/App.js index aa815169..76da40e0 100644 --- a/web/src/App.js +++ b/web/src/App.js @@ -142,7 +142,7 @@ class App extends Component { account: null }); - Setting.showMessage("success", `Successfully logged out, redirected to homepage`); + Setting.showMessage("success", `Logged out successfully`); Setting.goToLinkSoft(this, "/"); } else { @@ -159,6 +159,22 @@ class App extends Component { } } + renderAvatar() { + if (this.state.account.avatar === "") { + return ( + + {Setting.getShortName(this.state.account.name)} + + ) + } else { + return ( + + {Setting.getShortName(this.state.account.name)} + + ) + } + } + renderRightDropdown() { const menu = ( @@ -176,9 +192,9 @@ class App extends Component { return (
- - {Setting.getShortName(this.state.account.name)} - + { + this.renderAvatar() + }     {Setting.isMobile() ? null : Setting.getShortName(this.state.account.name)}