summaryrefslogtreecommitdiffhomepage
path: root/app/components/Account.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/Account.js
parentadc86a0de57367d0243a4f7dc08c87840f421b39 (diff)
parent81cc03093c05d54d79804595dd0354b1f878cdcd (diff)
downloadmullvadvpn-dc3fdd74ee240227a23a5fd4e7ce45b17cfe7cbb.tar.xz
mullvadvpn-dc3fdd74ee240227a23a5fd4e7ce45b17cfe7cbb.zip
Merge branch 'rename-to-expiry'
Diffstat (limited to 'app/components/Account.js')
-rw-r--r--app/components/Account.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/components/Account.js b/app/components/Account.js
index 41b26fdfbf..12ef0c1938 100644
--- a/app/components/Account.js
+++ b/app/components/Account.js
@@ -19,10 +19,10 @@ export default class Account extends Component {
props: AccountProps;
render(): React.Element<*> {
- const paidUntil = moment(this.props.account.paidUntil);
+ const expiry = moment(this.props.account.expiry);
const formattedAccountId = formatAccount(this.props.account.accountNumber || '');
- const formattedPaidUntil = paidUntil.format('hA, D MMMM YYYY').toUpperCase();
- const isOutOfTime = paidUntil.isSameOrBefore(moment());
+ const formattedExpiry = expiry.format('hA, D MMMM YYYY').toUpperCase();
+ const isOutOfTime = expiry.isSameOrBefore(moment());
return (
<Layout>
@@ -54,7 +54,7 @@ export default class Account extends Component {
<div className="account__out-of-time account__row-value account__row-value--error">OUT OF TIME</div>
</Then>
<Else>
- <div className="account__row-value">{ formattedPaidUntil }</div>
+ <div className="account__row-value">{ formattedExpiry }</div>
</Else>
</If>
</div>