Skip to content

Commit

Permalink
Add selectors for requiredUnlockBalance and fundedAccountNeedsDeposit (
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinbodnar committed Oct 1, 2021
1 parent 3a6b556 commit c662015
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/frontend/src/redux/slices/account/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ export const selectAccountId = createSelector(selectAccountSlice, (account) => a

export const selectBalance = createSelector(selectAccountSlice, (account) => account.balance);

export const selectAccountHelperWalletState = createSelector(selectAccountSlice, (account) => account.accountHelperWalletState || {});

export const selectAccountRequiredUnlockBalance = createSelector(selectAccountHelperWalletState, (accountHelperWalletState) => accountHelperWalletState.requiredUnlockBalance);

export const selectAccountFundedAccountNeedsDeposit = createSelector(selectAccountHelperWalletState, (accountHelperWalletState) => accountHelperWalletState.fundedAccountNeedsDeposit);

0 comments on commit c662015

Please sign in to comment.