File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
routes/(console)/organization-[organization] Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -291,10 +291,10 @@ export function calculateEnterpriseTrial(org: Organization) {
291
291
const today = new Date ( ) ;
292
292
293
293
let diffCycle = endDate . getTime ( ) - startDate . getTime ( ) ;
294
- diffCycle = Math . ceil ( diffCycle / ( 1000 * 60 * 60 * 24 ) ) + 1 ;
295
- if ( diffCycle === 15 ) {
294
+ diffCycle = Math . ceil ( diffCycle / ( 1000 * 60 * 60 * 24 ) ) ;
295
+ if ( diffCycle === 14 ) {
296
296
const remaining = endDate . getTime ( ) - today . getTime ( ) ;
297
- return Math . ceil ( remaining / ( 1000 * 60 * 60 * 24 ) ) + 1 ;
297
+ return Math . ceil ( remaining / ( 1000 * 60 * 60 * 24 ) ) ;
298
298
}
299
299
return 0 ;
300
300
}
Original file line number Diff line number Diff line change 27
27
Your enterprise trial expires in <Badge
28
28
size =" xs"
29
29
variant =" secondary"
30
- content ={remainingDays .toString ()} /> days.
30
+ content ={remainingDays .toString ()} /> days
31
31
</Typography .Text >
32
32
33
33
<Button size ="xs" secondary fullWidthMobile href ={upgradeUrl }>Upgrade</Button >
You can’t perform that action at this time.
0 commit comments