Skip to content

Commit

Permalink
fix(bonsai-core): it was actually an empty object and it was getting …
Browse files Browse the repository at this point in the history
…stripped from datadog since it was empty I guess (#1410)
  • Loading branch information
tyleroooo authored Jan 8, 2025
1 parent 95cd904 commit 7bbd125
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/abacus-ts/websocket/parentSubaccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from '@/types/indexer/indexerChecks';
import { IndexerWsOrderUpdate } from '@/types/indexer/indexerManual';
import { produce } from 'immer';
import { keyBy } from 'lodash';
import { isEmpty, keyBy } from 'lodash';

import { type RootStore } from '@/state/_store';
import { createAppSelector } from '@/state/appTypes';
Expand Down Expand Up @@ -78,8 +78,8 @@ function accountWebsocketValue(
handleBaseData: (baseMessage): Loadable<ParentSubaccountData> => {
accountRefreshSignal.notify();

// null message means account has had no transfers yet, but it's still valid
if (baseMessage == null) {
// empty message means account has had no transfers yet, but it's still valid
if (baseMessage == null || isEmpty(baseMessage)) {
const parentSubaccountNumberParsed = MustBigNumber(parentSubaccountNumber).toNumber();
return loadableLoaded({
address,
Expand Down

0 comments on commit 7bbd125

Please sign in to comment.