summaryrefslogtreecommitdiffhomepage
path: root/app/components/Connect.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/components/Connect.js
parentadc86a0de57367d0243a4f7dc08c87840f421b39 (diff)
parent81cc03093c05d54d79804595dd0354b1f878cdcd (diff)
downloadmullvadvpn-dc3fdd74ee240227a23a5fd4e7ce45b17cfe7cbb.tar.xz
mullvadvpn-dc3fdd74ee240227a23a5fd4e7ce45b17cfe7cbb.zip
Merge branch 'rename-to-expiry'
Diffstat (limited to 'app/components/Connect.js')
-rw-r--r--app/components/Connect.js6
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');
}