diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2017-08-24 22:05:31 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2017-08-24 22:05:31 +0200 |
| commit | dc3fdd74ee240227a23a5fd4e7ce45b17cfe7cbb (patch) | |
| tree | d7353b3beba6ef6470b68c6077e60af11e39c927 /app/components/Connect.js | |
| parent | adc86a0de57367d0243a4f7dc08c87840f421b39 (diff) | |
| parent | 81cc03093c05d54d79804595dd0354b1f878cdcd (diff) | |
| download | mullvadvpn-dc3fdd74ee240227a23a5fd4e7ce45b17cfe7cbb.tar.xz mullvadvpn-dc3fdd74ee240227a23a5fd4e7ce45b17cfe7cbb.zip | |
Merge branch 'rename-to-expiry'
Diffstat (limited to 'app/components/Connect.js')
| -rw-r--r-- | app/components/Connect.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/components/Connect.js b/app/components/Connect.js index c67e72f696..ba74fb311a 100644 --- a/app/components/Connect.js +++ b/app/components/Connect.js @@ -13,7 +13,7 @@ import type { HeaderBarStyle } from './HeaderBar'; import type { ConnectionReduxState } from '../redux/connection/reducers'; export type ConnectProps = { - accountPaidUntil: string, + accountExpiry: string, connection: ConnectionReduxState, preferredServer: string, onSettings: () => void, @@ -367,8 +367,8 @@ export default class Connect extends Component { } // No credit? - const paidUntil = this.props.accountPaidUntil; - if(paidUntil && moment(paidUntil).isSameOrBefore(moment())) { + const expiry = this.props.accountExpiry; + if(expiry && moment(expiry).isSameOrBefore(moment())) { return new BackendError('NO_CREDIT'); } |
