summaryrefslogtreecommitdiffhomepage
path: root/app/lib/backend.js
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2017-08-24 22:05:31 +0200
committerLinus Färnstrand <linus@mullvad.net>2017-08-24 22:05:31 +0200
commitdc3fdd74ee240227a23a5fd4e7ce45b17cfe7cbb (patch)
treed7353b3beba6ef6470b68c6077e60af11e39c927 /app/lib/backend.js
parentadc86a0de57367d0243a4f7dc08c87840f421b39 (diff)
parent81cc03093c05d54d79804595dd0354b1f878cdcd (diff)
downloadmullvadvpn-dc3fdd74ee240227a23a5fd4e7ce45b17cfe7cbb.tar.xz
mullvadvpn-dc3fdd74ee240227a23a5fd4e7ce45b17cfe7cbb.zip
Merge branch 'rename-to-expiry'
Diffstat (limited to 'app/lib/backend.js')
-rw-r--r--app/lib/backend.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/lib/backend.js b/app/lib/backend.js
index 6d5c4ebd14..ee11feee9d 100644
--- a/app/lib/backend.js
+++ b/app/lib/backend.js
@@ -163,7 +163,7 @@ export class Backend {
}).then( accountData => {
log.info('Log in complete');
- this._store.dispatch(accountActions.loginSuccessful(accountData.paid_until));
+ this._store.dispatch(accountActions.loginSuccessful(accountData.expiry));
// Redirect the user after some time to allow for
// the 'Login Successful' screen to be visible
@@ -197,7 +197,7 @@ export class Backend {
.then( accountData => {
log.info('The stored account number still exists', accountData);
- this._store.dispatch(accountActions.loginSuccessful(accountData.paid_until));
+ this._store.dispatch(accountActions.loginSuccessful(accountData.expiry));
this._store.dispatch(push('/connect'));
})