From c25cb31e34fd6dca44fd66711f5a987b45735843 Mon Sep 17 00:00:00 2001 From: 3urobeat <35304405+HerrEurobeat@users.noreply.github.com> Date: Fri, 3 Jun 2022 11:46:20 +0200 Subject: [PATCH] Re-enable primaryGroup profile setting --- components/profile.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/components/profile.js b/components/profile.js index 32b14ac..081a1f0 100644 --- a/components/profile.js +++ b/components/profile.js @@ -106,6 +106,15 @@ SteamCommunity.prototype.editProfile = function(settings, callback) { values.customURL = settings[i]; break; + case 'primaryGroup': + if(typeof settings[i] === 'object' && settings[i].getSteamID64) { + values.primary_group_steamid = settings[i].getSteamID64(); + } else { + values.primary_group_steamid = new SteamID(settings[i]).getSteamID64(); + } + + break; + // These don't work right now /* case 'background': @@ -117,15 +126,6 @@ SteamCommunity.prototype.editProfile = function(settings, callback) { // Currently, game badges aren't supported values.favorite_badge_badgeid = settings[i]; break; - - case 'primaryGroup': - if(typeof settings[i] === 'object' && settings[i].getSteamID64) { - values.primary_group_steamid = settings[i].getSteamID64(); - } else { - values.primary_group_steamid = new SteamID(settings[i]).getSteamID64(); - } - - break; */ // TODO: profile showcases }