Skip to content

Commit

Permalink
fix: remove optional chaining operator
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptodev-2s authored and Salah-eddineS committed Jul 13, 2023
1 parent 0e469a6 commit 822e806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/selectors/accountTrackerController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import {
import { EngineState } from './types';

const selectAccountTrackerControllerState = (state: EngineState) =>
state?.engine?.backgroundState?.AccountTrackerController;
state.engine.backgroundState.AccountTrackerController;

export const selectAccounts = createSelector(
selectAccountTrackerControllerState,
(accountTrackerControllerState: AccountTrackerState) =>
accountTrackerControllerState?.accounts,
accountTrackerControllerState.accounts,
);

export const selectAccountsLength = createSelector(
Expand Down

0 comments on commit 822e806

Please sign in to comment.