Merge pull request #76 from Aareksio/patch-1

Fix for issue #75
This commit is contained in:
Alexander Corn 2016-01-25 11:47:34 -05:00
commit 0b94419de4

View File

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