summaryrefslogtreecommitdiffhomepage
path: root/app/lib/backend.js
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-06-22 15:28:52 +0200
committerAndrej Mihajlov <and@mullvad.net>2018-07-03 13:37:54 +0200
commitd8569969ff508d139140a128b136ccfff06a89f5 (patch)
treea581504b79ca85a8fa5bc7cc8729d6a66215db8d /app/lib/backend.js
parent6af054e0b7321e7f8ce2dc1c32d907e36c6218ee (diff)
downloadmullvadvpn-d8569969ff508d139140a128b136ccfff06a89f5.tar.xz
mullvadvpn-d8569969ff508d139140a128b136ccfff06a89f5.zip
Pass individual props instead of AccountReduxState
Diffstat (limited to 'app/lib/backend.js')
-rw-r--r--app/lib/backend.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/lib/backend.js b/app/lib/backend.js
index 75301df87a..3e128da0b1 100644
--- a/app/lib/backend.js
+++ b/app/lib/backend.js
@@ -222,7 +222,11 @@ export class Backend {
const actions = this._reduxActions;
try {
- await Promise.all([this.disconnectTunnel(), this._daemonRpc.setAccount(null)]);
+ await Promise.all([
+ this.disconnectTunnel(),
+ this._daemonRpc.setAccount(null),
+ this.fetchAccountHistory(),
+ ]);
actions.account.loggedOut();
actions.history.push('/');
} catch (e) {
@@ -526,6 +530,7 @@ export class Backend {
this.fetchRelayLocations(),
this.fetchAllowLan(),
this.fetchLocation(),
+ this.fetchAccountHistory(),
]);
}