@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.mjs
CHANGED
|
@@ -3221,8 +3221,10 @@ var PositionsRowProvider = (props) => {
|
|
|
3221
3221
|
const [quantity, setQuantity] = useState(
|
|
3222
3222
|
Math.abs(position.position_qty).toString()
|
|
3223
3223
|
);
|
|
3224
|
-
const [price, setPrice] = useState(
|
|
3225
|
-
|
|
3224
|
+
const [price, setPrice] = useState(
|
|
3225
|
+
position.mark_price?.toString() || ""
|
|
3226
|
+
);
|
|
3227
|
+
const [type, setType] = useState(OrderType.LIMIT);
|
|
3226
3228
|
useEffect(() => {
|
|
3227
3229
|
setQuantity(Math.abs(position.position_qty).toString());
|
|
3228
3230
|
}, [position.position_qty]);
|