Skip to content

Commit

Permalink
Use createMatchSelector selector (#1966)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinbodnar committed Oct 19, 2021
1 parent 4cf945c commit ece0b80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/components/accounts/SetupSeedPhrase.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { createMatchSelector } from 'connected-react-router';
import { KeyPair } from 'near-api-js';
import { generateSeedPhrase } from 'near-seed-phrase';
import React, { Component, Fragment } from 'react';
Expand Down Expand Up @@ -296,8 +297,7 @@ const mapDispatchToProps = {
const mapStateToProps = (state, { match }) => {
return {
...selectAccountSlice(state),
verify: match.params.verify,
accountId: match.params.accountId,
accountId: createMatchSelector('/setup-seed-phrase/:accountId/:step')(state).params.accountId,
recoveryMethods: selectRecoveryMethodsByAccountId(state, { accountId: match.params.accountId }),
mainLoader: selectStatusMainLoader(state),
recoveryMethodsLoader: selectRecoveryMethodsLoading(state, { accountId: match.params.accountId })
Expand Down

0 comments on commit ece0b80

Please sign in to comment.