summaryrefslogtreecommitdiffhomepage
path: root/app/components/Connect.js
diff options
context:
space:
mode:
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');
}