mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-01-30 19:00:28 +08:00
Fix dot-notation violation
This commit is contained in:
parent
565132d1bc
commit
e49c5c175e
@ -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]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user