Skip to content

Commit

Permalink
fix: not show logout if logout process
Browse files Browse the repository at this point in the history
  • Loading branch information
geolffreym committed Mar 13, 2021
1 parent 1fa93e9 commit 37e2203
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/app/pages/index-view/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class MovieIndex extends React.Component {
this.state = {
state: 'Initializing', percent: 0, peers: this.peers, count: DEFAULT_INIT_LOAD,
ready: false, loading: true, movies: [], chunkSize: setting.defaults.chunkSize,
scrolling: false, finishLoad: false, showDetailsFor: false
scrolling: false, finishLoad: false, showDetailsFor: false, logout: false
};

this.movie = new Movie(broker);
Expand Down Expand Up @@ -272,7 +272,7 @@ export default class MovieIndex extends React.Component {
localStorage.clear();
broker.flush();
this.setState({
ready: false,
ready: false, logout: true,
state: 'Please Wait'
})
}
Expand Down Expand Up @@ -300,7 +300,7 @@ export default class MovieIndex extends React.Component {
<AppLoader
stateText={this.state.state}
statePercent={this.state.percent}
onClose={this.signOut}
onClose={!this.state.logout && this.signOut}
/>
</div>
) ||
Expand Down

0 comments on commit 37e2203

Please sign in to comment.