summaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
authoranderklander <anderklander@gmail.com>2018-03-02 12:17:29 +0100
committerAndrej Mihajlov <and@mullvad.net>2018-03-26 14:22:10 +0200
commitacce0f3586846208ecbec97d9adde85bfd23848d (patch)
treedcd6b5996b7f280cc85fc677a1cf616cba64a9f6 /app
parenteabbefd8dcd5a07fce450d0535b22435260eafd8 (diff)
downloadmullvadvpn-acce0f3586846208ecbec97d9adde85bfd23848d.tar.xz
mullvadvpn-acce0f3586846208ecbec97d9adde85bfd23848d.zip
Fix initial state
Diffstat (limited to 'app')
-rw-r--r--app/components/Login.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/components/Login.js b/app/components/Login.js
index b99fbdfc23..fecb5007a9 100644
--- a/app/components/Login.js
+++ b/app/components/Login.js
@@ -37,7 +37,7 @@ type State = {
export default class Login extends Component<LoginPropTypes, State> {
state = {
notifyOnFirstChangeAfterFailure: false,
- isActive: false,
+ isActive: true,
dropdownHeight: 0,
footerHeight: 0,
animatedFooterValue: Animated.createValue(0),
@@ -128,7 +128,7 @@ export default class Login extends Component<LoginPropTypes, State> {
_setAnimation = (footerAnimation: Animated.CompositeAnimation, dropdownAnimation: Animated.CompositeAnimation) => {
let compositeAnimation = Animated.parallel([ footerAnimation, dropdownAnimation ]);
this.setState({animation: compositeAnimation}, () => {
- this.state.animation.start(() => this.setState({
+ compositeAnimation.start(() => this.setState({
animation: null
}));
});