diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2020-06-17 15:51:32 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2020-06-24 11:24:36 +0200 |
| commit | 3d7b5def877520e5af76969f8de57c688b34211b (patch) | |
| tree | 2293e60bc60ced96e867d34ee2940e866ba9e595 /gui/src/shared | |
| parent | 797083b4d0eda93d53373575253e91083f4a29b9 (diff) | |
| download | mullvadvpn-3d7b5def877520e5af76969f8de57c688b34211b.tar.xz mullvadvpn-3d7b5def877520e5af76969f8de57c688b34211b.zip | |
Remove tooSoon property from CloseToAccountExpiryNotificationContext
Diffstat (limited to 'gui/src/shared')
| -rw-r--r-- | gui/src/shared/notifications/close-to-account-expiry.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gui/src/shared/notifications/close-to-account-expiry.ts b/gui/src/shared/notifications/close-to-account-expiry.ts index 3cf3d82826..b30aff2542 100644 --- a/gui/src/shared/notifications/close-to-account-expiry.ts +++ b/gui/src/shared/notifications/close-to-account-expiry.ts @@ -13,7 +13,6 @@ import { interface CloseToAccountExpiryNotificationContext { accountExpiry: string; locale: string; - tooSoon?: boolean; } export class CloseToAccountExpiryNotificationProvider @@ -25,9 +24,7 @@ export class CloseToAccountExpiryNotificationProvider moment().add(3, 'days'), ); - return ( - !hasExpired(this.context.accountExpiry) && willHaveExpiredInThreeDays && !this.context.tooSoon - ); + return !hasExpired(this.context.accountExpiry) && willHaveExpiredInThreeDays; } public getSystemNotification(): SystemNotification { |
