@kodiak-finance/orderly-ui-positions 2.8.19-rc.0 → 2.8.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -3227,8 +3227,10 @@ var PositionsRowProvider = (props) => {
|
|
|
3227
3227
|
const [quantity, setQuantity] = React3.useState(
|
|
3228
3228
|
Math.abs(position.position_qty).toString()
|
|
3229
3229
|
);
|
|
3230
|
-
const [price, setPrice] = React3.useState(
|
|
3231
|
-
|
|
3230
|
+
const [price, setPrice] = React3.useState(
|
|
3231
|
+
position.mark_price?.toString() || ""
|
|
3232
|
+
);
|
|
3233
|
+
const [type, setType] = React3.useState(orderlyTypes.OrderType.LIMIT);
|
|
3232
3234
|
React3.useEffect(() => {
|
|
3233
3235
|
setQuantity(Math.abs(position.position_qty).toString());
|
|
3234
3236
|
}, [position.position_qty]);
|