hotfix: fixed loading non perps accounts
This commit is contained in:
parent
413f8c43c8
commit
8283097262
@ -108,7 +108,7 @@ export function resolvePerpsPositions(
|
||||
perpPositions: Positions['perps'],
|
||||
prices: BNCoin[],
|
||||
): PerpsPosition[] {
|
||||
if (!perpPositions.length) return []
|
||||
if (!perpPositions || !perpPositions.length) return []
|
||||
const basePrice =
|
||||
prices.find((price) => price.denom === perpPositions[0].base_denom)?.amount ?? BN_ZERO
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user