summaryrefslogtreecommitdiffhomepage
path: root/gui/src/main
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2022-02-09 12:52:43 +0100
committerOskar Nyberg <oskar@mullvad.net>2022-02-09 12:52:43 +0100
commit98616b7e7ae6c8722b970895a5756d32872a2b79 (patch)
treea3878604e9a72ed75bf1c4c1989958c8610b9e46 /gui/src/main
parent5d0be2864ca826669681c0cd3bd818629096225e (diff)
parentf584c3f3bcdbf508ef7490c5586fc83f3d051805 (diff)
downloadmullvadvpn-98616b7e7ae6c8722b970895a5756d32872a2b79.tar.xz
mullvadvpn-98616b7e7ae6c8722b970895a5756d32872a2b79.zip
Merge branch 'fix-time-added-display'
Diffstat (limited to 'gui/src/main')
-rw-r--r--gui/src/main/index.ts8
1 files changed, 1 insertions, 7 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index 5b7504e711..bb84d520fe 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -230,13 +230,7 @@ class ApplicationMain {
return this.daemonRpc.getAccountData(accountToken);
},
(accountData) => {
- this.accountData = accountData && {
- ...accountData,
- previousExpiry:
- accountData.expiry !== this.accountData?.expiry
- ? this.accountData?.expiry
- : this.accountData?.previousExpiry,
- };
+ this.accountData = accountData;
if (this.windowController) {
IpcMainEventChannel.account.notify(this.windowController.webContents, this.accountData);