diff --git a/libs/orders/src/lib/components/order-list/order-edit-dialog.tsx b/libs/orders/src/lib/components/order-list/order-edit-dialog.tsx index 7fd201477..2458c204c 100644 --- a/libs/orders/src/lib/components/order-list/order-edit-dialog.tsx +++ b/libs/orders/src/lib/components/order-list/order-edit-dialog.tsx @@ -40,7 +40,14 @@ export const OrderEditDialog = ({ register, formState: { errors }, handleSubmit, - } = useForm(); + } = useForm({ + defaultValues: { + entryPrice: addDecimalsFormatNumber( + order.price, + order.market?.decimalPlaces ?? 0 + ), + }, + }); const step = toDecimal(order.market?.decimalPlaces ?? 0); @@ -92,7 +99,7 @@ export const OrderEditDialog = ({ data-testid="edit-order" className="w-1/2 mt-4" > - +