diff options
| author | anderklander <anderklander@gmail.com> | 2018-03-20 07:56:35 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-03-26 14:22:11 +0200 |
| commit | a62db67f67a342188c23faed66b7e83c9f05a490 (patch) | |
| tree | 16232d5b8d8a18fee0f255b31c04fd1e37a06cd2 /app | |
| parent | cd71e8a5ea8f45d4ed0831e3fb921fd489338bc1 (diff) | |
| download | mullvadvpn-a62db67f67a342188c23faed66b7e83c9f05a490.tar.xz mullvadvpn-a62db67f67a342188c23faed66b7e83c9f05a490.zip | |
Flox fix and upgrade reactxp
needs upgrade to make animations work
Diffstat (limited to 'app')
| -rw-r--r-- | app/components/Login.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/components/Login.js b/app/components/Login.js index 0326ede9f5..64197efc12 100644 --- a/app/components/Login.js +++ b/app/components/Login.js @@ -127,11 +127,11 @@ export default class Login extends Component<LoginPropTypes, State> { if (this.state.animation) { this.state.animation.stop(); } - const accountToken = this.props.account.accountToken; + const accountToken = props.account.accountToken || []; const footerPosition = this._shouldShowFooter(props) ? 0 : this.state.footerHeight; const dropdownHeight = this._shouldShowAccountHistory(props) ? this.state.dropdownHeight : 0; - const loginButtonValue = (accountToken && accountToken.length) > 0 ? 1 : 0; + const loginButtonValue = (accountToken.length) > 0 ? 1 : 0; this._setAnimation(this._getFooterAnimation(footerPosition), this._getDropdownAnimation(dropdownHeight), this._getLoginButtonAnimation(loginButtonValue)); } |
