@@ -38,7 +38,7 @@ export class AccountStore extends Store<AccountState> {
38
38
this . get ( "is_logged_in" ) ,
39
39
this . get ( "email_address" ) ,
40
40
this . get ( "passports" ) ,
41
- this . get ( "lti_id" )
41
+ this . get ( "lti_id" ) ,
42
42
) ;
43
43
} ,
44
44
dependencies : [
@@ -88,7 +88,7 @@ export class AccountStore extends Store<AccountState> {
88
88
get_color ( ) : string {
89
89
return this . getIn (
90
90
[ "profile" , "color" ] ,
91
- this . get ( "account_id" , "f00" ) . slice ( 0 , 6 )
91
+ this . get ( "account_id" , "f00" ) . slice ( 0 , 6 ) ,
92
92
) ;
93
93
}
94
94
@@ -114,6 +114,10 @@ export class AccountStore extends Store<AccountState> {
114
114
return stripe_data && get_total_upgrades ( stripe_data . toJS ( ) ) ;
115
115
}
116
116
117
+ hasLegacyUpgrades = ( ) => {
118
+ return this . getIn ( [ "stripe_customer" , "subscriptions" , "data" ] ) != null ;
119
+ } ;
120
+
117
121
// uses the total upgrades information to determine, if this is a paying member
118
122
// TODO: this is not used anywhere; but, if it was, it should also take into account
119
123
// being a license manager...
@@ -141,7 +145,7 @@ function is_anonymous(
141
145
is_logged_in : boolean ,
142
146
email_address : string | undefined | null ,
143
147
passports : Map < string , any > | undefined | null ,
144
- lti_id : List < string > | undefined | null
148
+ lti_id : List < string > | undefined | null ,
145
149
) : boolean {
146
150
if ( ! is_logged_in ) {
147
151
return false ;
0 commit comments