Compare against PrivacyState rather than using a magic number

This commit is contained in:
Alex Corn 2021-07-30 00:27:21 -04:00
parent c7a8c676b7
commit d09f18f055
No known key found for this signature in database
GPG Key ID: E51989A3E7A27FDF

View File

@ -68,7 +68,7 @@ function CSteamUser(community, userData, customurl) {
this.isLimitedAccount = processItem('isLimitedAccount') == 1;
this.customURL = processItem('customURL', customurl);
if (this.visibilityState == 3) {
if (this.visibilityState == SteamCommunity.PrivacyState.Public) {
let memberSinceValue = processItem('memberSince', '0').replace(/(\d{1,2})(st|nd|th)/, '$1');
if (memberSinceValue.indexOf(',') === -1) {