Fix dot-notation violation

This commit is contained in:
Alex Corn 2021-07-29 22:04:20 -04:00
parent 565132d1bc
commit e49c5c175e
No known key found for this signature in database
GPG Key ID: E51989A3E7A27FDF

View File

@ -93,7 +93,7 @@ function CSteamUser(community, userData, customurl) {
if (userData.groups && userData.groups[0] && userData.groups[0].group) {
this.groups = userData.groups[0].group.map((group) => {
if (group['$'] && group['$'].isPrimary === '1') {
if (group.$ && group.$.isPrimary === '1') {
this.primaryGroup = new SteamID(group.groupID64[0]);
}