diff --git a/src/services/shipCustomizationsService.ts b/src/services/shipCustomizationsService.ts index 170a69f0..83a7371c 100644 --- a/src/services/shipCustomizationsService.ts +++ b/src/services/shipCustomizationsService.ts @@ -88,7 +88,7 @@ export const handleSetShipDecorations = async ( Type: placedDecoration.Type, Pos: placedDecoration.Pos, Rot: placedDecoration.Rot, - Scale: placedDecoration.Scale || 1, + Scale: placedDecoration.Scale, _id: placedDecoration.MoveId }; @@ -124,7 +124,7 @@ export const handleSetShipDecorations = async ( Type: placedDecoration.Type, Pos: placedDecoration.Pos, Rot: placedDecoration.Rot, - Scale: placedDecoration.Scale || 1, + Scale: placedDecoration.Scale, _id: decoId }); diff --git a/src/types/shipTypes.ts b/src/types/shipTypes.ts index fe5e3608..40eba27a 100644 --- a/src/types/shipTypes.ts +++ b/src/types/shipTypes.ts @@ -70,7 +70,7 @@ export interface IPlacedDecosDatabase { Type: string; Pos: [number, number, number]; Rot: [number, number, number]; - Scale: number; + Scale?: number; PictureFrameInfo?: IPictureFrameInfo; _id: Types.ObjectId; }