From c376ff757bb39db1f4b582af98a5cb559473707a Mon Sep 17 00:00:00 2001 From: marcinbodnar Date: Wed, 20 Oct 2021 21:53:11 +0200 Subject: [PATCH] Revert "Use createMatchSelector selector (#1966)" This reverts commit ece0b80e8980b45ec2a1c0f1b7d3277e338066ff. --- .../frontend/src/components/accounts/SetupSeedPhrase.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/components/accounts/SetupSeedPhrase.js b/packages/frontend/src/components/accounts/SetupSeedPhrase.js index b7aff0d164..c96628cc54 100644 --- a/packages/frontend/src/components/accounts/SetupSeedPhrase.js +++ b/packages/frontend/src/components/accounts/SetupSeedPhrase.js @@ -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'; @@ -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),