From 3686826052cba6a6caac4df7c14982791d4c7b54 Mon Sep 17 00:00:00 2001 From: oma <57739965+Eazvy@users.noreply.github.com> Date: Sat, 14 Mar 2026 21:33:11 -0400 Subject: [PATCH] ProfileSets fix gradient / decorations / profile-effect not loading (#909) * profileSetsfixdecoration * remove random button fallback * restore rainbow random button * fix preset collectible checks --- src/equicordplugins/profileSets/utils/profile.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/equicordplugins/profileSets/utils/profile.ts b/src/equicordplugins/profileSets/utils/profile.ts index 148081443..b62070de2 100644 --- a/src/equicordplugins/profileSets/utils/profile.ts +++ b/src/equicordplugins/profileSets/utils/profile.ts @@ -316,12 +316,6 @@ export async function loadPresetAsPending(preset: ProfilePreset, guildId?: strin const pendingChanges = (isGuild && guildId ? UserProfileSettingsStore.getPendingChanges(guildId) : UserProfileSettingsStore.getPendingChanges()); - const equippedAvatarDecoration = currentUser.avatarDecorationData ?? null; - const equippedProfileEffect = equippedProfile?.profileEffect ?? null; - const equippedNameplate = currentUser.collectibles?.nameplate ?? null; - const pendingAvatarDecoration = pendingChanges?.pendingAvatarDecoration ?? null; - const pendingProfileEffect = pendingChanges?.pendingProfileEffect ?? null; - const pendingNameplate = pendingChanges?.pendingNameplate ?? null; const setPending = (field: string, payload: Record) => { const cleanPayload = Object.fromEntries(Object.entries(payload).filter(([, v]) => v !== undefined)); if (!Object.keys(cleanPayload).length) return; @@ -368,19 +362,19 @@ export async function loadPresetAsPending(preset: ProfilePreset, guildId?: strin } } - if (preset.avatarDecoration && ![pendingAvatarDecoration, equippedAvatarDecoration, current.avatarDecoration].some(d => avatarDecorationEq(preset.avatarDecoration, d))) { + if (preset.avatarDecoration !== undefined && !avatarDecorationEq(preset.avatarDecoration, current.avatarDecoration)) { setPending("COLLECTIBLES_ITEM", { item: { type: 0, value: preset.avatarDecoration } }); } - if (preset.profileEffect && ![pendingProfileEffect, equippedProfileEffect, current.profileEffect].some(d => collectibleEqBySku(preset.profileEffect, d))) { + if (preset.profileEffect !== undefined && !collectibleEqBySku(preset.profileEffect, current.profileEffect)) { setPending("COLLECTIBLES_ITEM", { item: { type: 1, value: preset.profileEffect } }); } - if (preset.nameplate && ![pendingNameplate, equippedNameplate, current.nameplate].some(d => nameplateEq(preset.nameplate, d))) { + if (preset.nameplate !== undefined && !nameplateEq(preset.nameplate, current.nameplate)) { setPending("COLLECTIBLES_ITEM", { item: { type: 2, value: preset.nameplate } });