diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-02-12 18:28:27 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-02-12 18:28:27 -0600 |
| commit | a3f331c61bb344841c0941d844de125ed7458c0a (patch) | |
| tree | 591c0f090fad083a88bc1ffb9b1250e3940687bf /src/web | |
| parent | 8d2120d59acf3a3d5bdb86fbeb59355f74bee14e (diff) | |
| download | slskd-a3f331c61bb344841c0941d844de125ed7458c0a.tar.gz | |
fix broken logout button
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/src/components/App.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/src/components/App.js b/src/web/src/components/App.js index 1aba87d6..902c20e7 100644 --- a/src/web/src/components/App.js +++ b/src/web/src/components/App.js @@ -98,7 +98,7 @@ class App extends Component { logout = () => { session.logout(); - this.setState({ ...initialState, login: { ...initialState.login, initialized: true }}); + this.setState({ ...initialState, initialized: true, login: { ...initialState.login }}); }; withTokenCheck = (component) => { @@ -234,7 +234,7 @@ class App extends Component { size='mini' header={<Header icon='sign-out' content='Confirm Log Out' />} content='Are you sure you want to log out?' - actions={['Cancel', { key: 'done', content: 'Log Out', negative: true, onClick: session.logout }]} + actions={['Cancel', { key: 'done', content: 'Log Out', negative: true, onClick: this.logout }]} />} </Menu> </Sidebar> |
