fix outfit resets for emotion/gp
This commit is contained in:
parent
2214fe2815
commit
5d6b267992
2 changed files with 5 additions and 2 deletions
|
@ -55,6 +55,8 @@ function OutfitResetModal({ isOpen, onClose, dispatchToOutfit }) {
|
||||||
name: petName,
|
name: petName,
|
||||||
speciesId: species.id,
|
speciesId: species.id,
|
||||||
colorId: color.id,
|
colorId: color.id,
|
||||||
|
emotion: "HAPPY", // TODO: Ask PetService
|
||||||
|
genderPresentation: "FEMININE", // TODO: Ask PetService
|
||||||
wornItemIds: items.map((i) => i.id),
|
wornItemIds: items.map((i) => i.id),
|
||||||
closetedItemIds: [],
|
closetedItemIds: [],
|
||||||
});
|
});
|
||||||
|
|
|
@ -202,8 +202,9 @@ const outfitStateReducer = (apolloClient) => (baseState, action) => {
|
||||||
state.name = name;
|
state.name = name;
|
||||||
state.speciesId = speciesId ? String(speciesId) : baseState.speciesId;
|
state.speciesId = speciesId ? String(speciesId) : baseState.speciesId;
|
||||||
state.colorId = colorId ? String(colorId) : baseState.colorId;
|
state.colorId = colorId ? String(colorId) : baseState.colorId;
|
||||||
state.emotion = emotion;
|
state.emotion = emotion || baseState.emotion;
|
||||||
state.genderPresentation = genderPresentation;
|
state.genderPresentation =
|
||||||
|
genderPresentation || baseState.genderPresentation;
|
||||||
state.wornItemIds = wornItemIds
|
state.wornItemIds = wornItemIds
|
||||||
? new Set(wornItemIds.map(String))
|
? new Set(wornItemIds.map(String))
|
||||||
: baseState.wornItemIds;
|
: baseState.wornItemIds;
|
||||||
|
|
Loading…
Reference in a new issue