diff --git a/ts/client/src/accounts/mangoAccount.ts b/ts/client/src/accounts/mangoAccount.ts index c863a5788..8d076d56c 100644 --- a/ts/client/src/accounts/mangoAccount.ts +++ b/ts/client/src/accounts/mangoAccount.ts @@ -115,6 +115,7 @@ export class MangoAccount { async reloadSerum3OpenOrders(client: MangoClient): Promise { const serum3Active = this.serum3Active(); + if (!serum3Active.length) return this; const ais = await client.program.provider.connection.getMultipleAccountsInfo( serum3Active.map((serum3) => serum3.openOrders),