Skip to content

Commit

Permalink
Revert "Use createMatchSelector selector in SetupReoveryMethod compon…
Browse files Browse the repository at this point in the history
…ent (#1966)"

This reverts commit a6e2707.
  • Loading branch information
marcinbodnar committed Oct 20, 2021
1 parent 5884b10 commit 38cf83b
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createMatchSelector, getRouter } from 'connected-react-router';
import { getRouter } from 'connected-react-router';
import { KeyPair } from 'near-api-js';
import { parseSeedPhrase } from 'near-seed-phrase';
import React, { Component, createRef } from 'react';
Expand Down Expand Up @@ -541,9 +541,8 @@ const mapDispatchToProps = {
setLinkdropAmount
};

const mapStateToProps = (state) => {
const matchSelector = createMatchSelector('/set-recovery/:accountId/:fundingContract?/:fundingKey?');
const accountId = matchSelector(state)?.params.accountId;
const mapStateToProps = (state, { match }) => {
const accountId = match.params.accountId;

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

0 comments on commit 38cf83b

Please sign in to comment.