Skip to content

Commit

Permalink
Merge branch 'main' into STAKE-874-hide-0-staked-balances-on-homepage…
Browse files Browse the repository at this point in the history
…-when-user-has-no-positions-or-never-staked-before
  • Loading branch information
nickewansmith authored Nov 19, 2024
2 parents 47130a5 + 35212ec commit 428d42f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/util/sentry/tags/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export function getTraceTags(state: RootState) {
if (!state?.engine?.backgroundState?.TokensController) return;
if (!state?.engine?.backgroundState?.TransactionController) return;
if (!state?.engine?.backgroundState?.NotificationServicesController) return;
if (!state?.engine?.backgroundState?.ApprovalController) return;
if (!Object.keys(state?.engine?.backgroundState).length) return;

const unlocked = state.user.userLoggedIn;
Expand All @@ -21,9 +22,10 @@ export function getTraceTags(state: RootState) {
const notificationCount = getNotificationsList(state).length;
const tokenCount = selectAllTokensFlat(state).length;
const transactionCount = selectTransactions(state).length;
const pendingApprovals = Object.values(selectPendingApprovals(state));
const pendingApprovals = selectPendingApprovals(state);
const pendingApprovalsValues = Object.values(pendingApprovals ?? {});

const firstApprovalType = pendingApprovals?.[0]?.type;
const firstApprovalType = pendingApprovalsValues?.[0]?.type;

return {
'wallet.account_count': accountCount,
Expand Down

0 comments on commit 428d42f

Please sign in to comment.