@drift-labs/sdk-browser 2.135.0-beta.2 → 2.135.0-beta.3

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/VERSION CHANGED
@@ -1 +1 @@
1
- 2.135.0-beta.2
1
+ 2.135.0-beta.3
@@ -1089,7 +1089,7 @@ class User {
1089
1089
  }
1090
1090
  isHighLeverageMode(marginCategory) {
1091
1091
  return ((0, types_1.isVariant)(this.getUserAccount().marginMode, 'highLeverage') ||
1092
- ((0, types_1.isVariant)(marginCategory, 'maintenance') &&
1092
+ (marginCategory === 'Maintenance' &&
1093
1093
  (0, types_1.isVariant)(this.getUserAccount().marginMode, 'highLeverageMaintenance')));
1094
1094
  }
1095
1095
  /**
package/lib/node/user.js CHANGED
@@ -1089,7 +1089,7 @@ class User {
1089
1089
  }
1090
1090
  isHighLeverageMode(marginCategory) {
1091
1091
  return ((0, types_1.isVariant)(this.getUserAccount().marginMode, 'highLeverage') ||
1092
- ((0, types_1.isVariant)(marginCategory, 'maintenance') &&
1092
+ (marginCategory === 'Maintenance' &&
1093
1093
  (0, types_1.isVariant)(this.getUserAccount().marginMode, 'highLeverageMaintenance')));
1094
1094
  }
1095
1095
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk-browser",
3
- "version": "2.135.0-beta.2",
3
+ "version": "2.135.0-beta.3",
4
4
  "main": "lib/node/index.js",
5
5
  "types": "lib/node/index.d.ts",
6
6
  "browser": "./lib/browser/index.js",
package/src/user.ts CHANGED
@@ -2102,7 +2102,7 @@ export class User {
2102
2102
  public isHighLeverageMode(marginCategory: MarginCategory): boolean {
2103
2103
  return (
2104
2104
  isVariant(this.getUserAccount().marginMode, 'highLeverage') ||
2105
- (isVariant(marginCategory, 'maintenance') &&
2105
+ (marginCategory === 'Maintenance' &&
2106
2106
  isVariant(this.getUserAccount().marginMode, 'highLeverageMaintenance'))
2107
2107
  );
2108
2108
  }