fix: let not const for state (reassigned in init block)
This commit is contained in:
parent
c46570171a
commit
cdddefc6a9
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ async function evaluateAlerts(positions: Position[], today: string): Promise<voi
|
|||
const openPositions = positions.filter(p => p.netqty !== 0);
|
||||
for (const pos of openPositions) {
|
||||
const _raw = getBandState.get(pos.key) as any;
|
||||
const state: BandState | undefined = _raw ? {
|
||||
let state: BandState | undefined = _raw ? {
|
||||
positionKey: _raw.position_key,
|
||||
anchorPnl: _raw.anchor_pnl,
|
||||
lastAlertPnl: _raw.last_alert_pnl,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue