summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2021-07-02 16:26:49 +0200
committerOskar Nyberg <oskar@mullvad.net>2021-07-06 10:36:04 +0200
commit2930fc358384f737544b281b96f4f78076b21636 (patch)
treeb70aa9f4f75e137c13086bdab4d6f1912206b5ca /gui/src
parent53b41c5c5b49bb29f43f801de66f8a3e1ffd47d1 (diff)
downloadmullvadvpn-2930fc358384f737544b281b96f4f78076b21636.tar.xz
mullvadvpn-2930fc358384f737544b281b96f4f78076b21636.zip
Prevent account history and Login footer from hiding
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/renderer/components/Login.tsx13
1 files changed, 2 insertions, 11 deletions
diff --git a/gui/src/renderer/components/Login.tsx b/gui/src/renderer/components/Login.tsx
index 29923d7d0f..4198bcb9dd 100644
--- a/gui/src/renderer/components/Login.tsx
+++ b/gui/src/renderer/components/Login.tsx
@@ -82,7 +82,7 @@ export default class Login extends React.Component<IProps, IState> {
}
public render() {
- const showFooter = this.shouldShowFooter();
+ const showFooter = this.allowInteraction();
return (
<Layout>
@@ -208,16 +208,7 @@ export default class Login extends React.Component<IProps, IState> {
}
private shouldShowAccountHistory() {
- return (
- this.allowInteraction() && this.state.isActive && this.props.accountHistory !== undefined
- );
- }
-
- private shouldShowFooter() {
- return (
- (this.props.loginState.type === 'none' || this.props.loginState.type === 'failed') &&
- !this.shouldShowAccountHistory()
- );
+ return this.allowInteraction() && this.props.accountHistory !== undefined;
}
private onSelectAccountFromHistory = (accountToken: string) => {