Skip to content

Commit

Permalink
Revert "Use createMatchSelector selector in Profile component (#1966)"
Browse files Browse the repository at this point in the history
This reverts commit 23cd6ea.
  • Loading branch information
marcinbodnar committed Oct 20, 2021
1 parent 38cf83b commit 52f60be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/frontend/src/components/profile/Profile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import BN from 'bn.js';
import { createMatchSelector } from 'connected-react-router';
import { formatNearAmount } from 'near-api-js/lib/utils/format';
import React, { useEffect, useState } from 'react';
import { Translate } from 'react-localize-redux';
Expand Down Expand Up @@ -137,7 +136,7 @@ export function Profile({ match }) {
const ledgerKey = useSelector(selectAccountLedgerKey);
const loginAccountId = useSelector(selectAccountId);
const nearTokenFiatValueUSD = useSelector(selectNearTokenFiatValueUSD);
const accountIdFromUrl = useSelector(createMatchSelector('/profile/:accountId'))?.params.accountId;
const accountIdFromUrl = match.params.accountId;
const accountId = accountIdFromUrl || loginAccountId;
const isOwner = accountId === loginAccountId;
const account = useAccount(accountId);
Expand Down

0 comments on commit 52f60be

Please sign in to comment.