Skip to content

Commit 33d7b90

Browse files
committed
Clarify active-but-not-renewing in settings UI
1 parent 91c0617 commit 33d7b90

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/settings/settings-page.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as React from 'react';
33
import { observer, inject } from "mobx-react";
44
import * as dedent from 'dedent';
55
import {
6-
distanceInWordsStrict, distanceInWordsToNow, format
6+
distanceInWordsStrict, distanceInWordsToNow, format, isFuture
77
} from 'date-fns';
88
import { SubscriptionPlans } from '@httptoolkit/accounts';
99

@@ -180,7 +180,9 @@ class SettingsPage extends React.Component<SettingsPageProps> {
180180
If retried payments fail your subscription will be cancelled.
181181
`}
182182
>Past due <WarningIcon /></strong>,
183-
'deleted': 'Cancelled'
183+
'deleted': sub.expiry && isFuture(sub.expiry)
184+
? `Active (until ${sub.expiry.toLocaleDateString()})`
185+
: 'Cancelled'
184186
}[sub.status]) || 'Unknown'
185187
}
186188
{ isAccountUpdateInProcess &&

0 commit comments

Comments
 (0)