Skip to content

Commit

Permalink
Revert "Use createMatchSelector selector in SetupLedger component (#1966
Browse files Browse the repository at this point in the history
)"

This reverts commit b5ff51e.
  • Loading branch information
marcinbodnar committed Oct 20, 2021
1 parent 1ceb06c commit 5884b10
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { createMatchSelector } from 'connected-react-router';
import React, { useEffect, useRef, useState } from 'react';
import { Translate } from 'react-localize-redux';
import { connect } from 'react-redux';
Expand Down Expand Up @@ -192,9 +191,9 @@ const SetupLedger = (props) => {
);
};

const mapStateToProps = (state) => ({
const mapStateToProps = (state, { match }) => ({
...selectAccountSlice(state),
accountId: createMatchSelector('/setup-ledger/:accountId')(state)?.params.accountId,
accountId: match.params.accountId,
mainLoader: selectStatusMainLoader(state)
});

Expand Down

0 comments on commit 5884b10

Please sign in to comment.