Decor: Fix Create/Select Modal Preview
This commit is contained in:
parent
0a7d867329
commit
8ffff9af78
2 changed files with 3 additions and 3 deletions
|
|
@ -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>}
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ function CreateDecorationModal(props: ModalProps) {
|
|||
</div>
|
||||
<div>
|
||||
<AvatarDecorationModalPreview
|
||||
avatarDecorationOverride={decoration}
|
||||
avatarDecoration={decoration}
|
||||
user={UserStore.getCurrentUser()}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue