File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export interface Sponsor {
46
46
websiteUrl : string | null ;
47
47
} ;
48
48
createdAt : string ;
49
- privacyLevel : PrivacyLevel ;
49
+ privacyLevel ? : PrivacyLevel ;
50
50
tier ?: {
51
51
monthlyPriceInCents ?: number ;
52
52
} ;
Original file line number Diff line number Diff line change @@ -88,8 +88,9 @@ function generateTemplate(response, action) {
88
88
const sponsorshipsAsMaintainer = data === null || data === void 0 ? void 0 : data . sponsorshipsAsMaintainer ;
89
89
if ( sponsorshipsAsMaintainer ) {
90
90
/* Appends the template, the API call returns all users regardless of if they are hidden or not.
91
- In an effort to respect a users decision to be anonymous we filter these users out. */
92
- let filteredSponsors = sponsorshipsAsMaintainer . nodes . filter ( ( user ) => user . privacyLevel !== constants_1 . PrivacyLevel . PRIVATE &&
91
+ In an effort to respect a users decision to be anonymous we filter these users out. */
92
+ let filteredSponsors = sponsorshipsAsMaintainer . nodes . filter ( ( user ) => user . privacyLevel &&
93
+ user . privacyLevel !== constants_1 . PrivacyLevel . PRIVATE &&
93
94
( user . tier && user . tier . monthlyPriceInCents
94
95
? user . tier . monthlyPriceInCents
95
96
: 0 ) >= action . minimum ) ;
You can’t perform that action at this time.
0 commit comments