Skip to content

Commit 6b25d24

Browse files
crispheaney0xbigz
authored andcommitted
sdk: fix isHighLeverageMode
1 parent c610184 commit 6b25d24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/src/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2102,7 +2102,7 @@ export class User {
21022102
public isHighLeverageMode(marginCategory: MarginCategory): boolean {
21032103
return (
21042104
isVariant(this.getUserAccount().marginMode, 'highLeverage') ||
2105-
(isVariant(marginCategory, 'maintenance') &&
2105+
(marginCategory === 'Maintenance' &&
21062106
isVariant(this.getUserAccount().marginMode, 'highLeverageMaintenance'))
21072107
);
21082108
}

0 commit comments

Comments
 (0)