Decor: Fix Create/Select Modal Preview

This commit is contained in:
thororen1234 2025-11-07 11:53:10 -05:00
parent 0a7d867329
commit 8ffff9af78
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -99,7 +99,7 @@ function ChangeDecorationModal(props: ModalProps) {
const [tryingDecoration, setTryingDecoration] = useState<Decoration | null | undefined>(undefined);
const isTryingDecoration = typeof tryingDecoration !== "undefined";
const avatarDecorationOverride = tryingDecoration != null ? decorationToAvatarDecoration(tryingDecoration) : tryingDecoration;
const avatarDecoration = tryingDecoration != null ? decorationToAvatarDecoration(tryingDecoration) : tryingDecoration;
const {
decorations,
@ -202,7 +202,7 @@ function ChangeDecorationModal(props: ModalProps) {
/>
<div className={cl("change-decoration-modal-preview")}>
<AvatarDecorationModalPreview
avatarDecorationOverride={avatarDecorationOverride}
avatarDecoration={avatarDecoration}
user={UserStore.getCurrentUser()}
/>
{isActiveDecorationPreset && <Heading className="">Part of the {activeDecorationPreset.name} Preset</Heading>}

View file

@ -120,7 +120,7 @@ function CreateDecorationModal(props: ModalProps) {
</div>
<div>
<AvatarDecorationModalPreview
avatarDecorationOverride={decoration}
avatarDecoration={decoration}
user={UserStore.getCurrentUser()}
/>
</div>