@triadxyz/triad-protocol 3.0.7-beta → 3.0.8-beta

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -713,7 +713,7 @@ class TriadProtocolClient {
713
713
  var _a;
714
714
  return __awaiter(this, void 0, void 0, function* () {
715
715
  const userOrders = yield this.getUserOrdersByMarketId(this.program.provider.publicKey, marketId);
716
- const userNonce = (_a = userOrders.find((order) => order.orderDirection === Object.keys(direction)[0] &&
716
+ const userNonce = (_a = userOrders.find((order) => order.orderDirection === direction &&
717
717
  order.orderStatus === types_1.OrderStatus.OPEN)) === null || _a === void 0 ? void 0 : _a.userNonce;
718
718
  let userTradePDA = null;
719
719
  let userTradeIxs = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "3.0.7-beta",
3
+ "version": "3.0.8-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",