File tree 3 files changed +3
-5
lines changed
pages/DeploySettingsPage/LicensesSettingsPage
3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -329,7 +329,8 @@ type Claims = {
329
329
account_id ?: string ;
330
330
trial : boolean ;
331
331
all_features : boolean ;
332
- feature_set : string ;
332
+ // feature_set is omitted on legacy licenses
333
+ feature_set ?: string ;
333
334
version : number ;
334
335
features : Record < string , number > ;
335
336
require_telemetry ?: boolean ;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export const LicenseCard: FC<LicenseCardProps> = ({
33
33
34
34
const licenseType = license . claims . trial
35
35
? "Trial"
36
- : license . claims . feature_set . toLowerCase ( ) === "premium"
36
+ : license . claims . feature_set ? .toLowerCase ( ) === "premium"
37
37
? "Premium"
38
38
: "Enterprise" ;
39
39
Original file line number Diff line number Diff line change @@ -2647,7 +2647,6 @@ export const MockLicenseResponse: GetLicensesResponse[] = [
2647
2647
claims : {
2648
2648
trial : false ,
2649
2649
all_features : true ,
2650
- feature_set : "" , // Legacy is empty
2651
2650
version : 1 ,
2652
2651
features : { } ,
2653
2652
license_expires : 3420244800 ,
@@ -2661,7 +2660,6 @@ export const MockLicenseResponse: GetLicensesResponse[] = [
2661
2660
claims : {
2662
2661
trial : false ,
2663
2662
all_features : true ,
2664
- feature_set : "" , // Legacy is empty
2665
2663
version : 1 ,
2666
2664
features : { } ,
2667
2665
license_expires : 1660104000 ,
@@ -2675,7 +2673,6 @@ export const MockLicenseResponse: GetLicensesResponse[] = [
2675
2673
claims : {
2676
2674
trial : false ,
2677
2675
all_features : true ,
2678
- feature_set : "" , // Legacy is empty
2679
2676
version : 1 ,
2680
2677
features : { } ,
2681
2678
license_expires : 1682346425 ,
You can’t perform that action at this time.
0 commit comments