Skip to content

Commit

Permalink
Revert "Use createMatchSelector selector (#1966)"
Browse files Browse the repository at this point in the history
This reverts commit ece0b80.
  • Loading branch information
marcinbodnar committed Oct 20, 2021
1 parent 2569b33 commit c376ff7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/frontend/src/components/accounts/SetupSeedPhrase.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
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 @@ -294,9 +293,8 @@ const mapDispatchToProps = {
setLinkdropAmount
};

const mapStateToProps = (state) => {
const matchSelector = createMatchSelector('/setup-seed-phrase/:accountId/:step');
const accountId = matchSelector(state)?.params.accountId;
const mapStateToProps = (state, { match }) => {
const { accountId } = match.params;

return {
...selectAccountSlice(state),
Expand Down

0 comments on commit c376ff7

Please sign in to comment.