Decor: Fix Create Preview Modal

This commit is contained in:
thororen1234 2026-02-05 11:38:17 -05:00
parent 1611b4e15b
commit 8f0db742ec
No known key found for this signature in database

View file

@ -114,7 +114,7 @@ export default definePlugin({
find: "#{intl::PREMIUM_UPSELL_PROFILE_AVATAR_DECO_INLINE_UPSELL_DESCRIPTION}",
replacement: {
match: /(#{intl::PREMIUM_UPSELL_PROFILE_AVATAR_DECO_INLINE_UPSELL_DESCRIPTION}.+?return null!=(\i)&&\()(null==\i)/,
replace: (_, rest, avatarDecoration, hasPurchase) => `${rest}(${avatarDecoration}.skuId!==$self.SKU_ID&&${hasPurchase})`
replace: (_, rest, avatarDecoration, hasPurchase) => `${rest}(${avatarDecoration}.skuId!==$self.SKU_ID&&${avatarDecoration}.skuId!==$self.RAW_SKU_ID&&${hasPurchase})`
}
}
],
@ -140,6 +140,7 @@ export default definePlugin({
},
SKU_ID,
RAW_SKU_ID,
useUserDecorAvatarDecoration,