From 91ef2a2e6fc05db63ccef58d341fe564bb42472a Mon Sep 17 00:00:00 2001 From: marcinbodnar Date: Wed, 20 Oct 2021 22:06:48 +0200 Subject: [PATCH] Revert "Use createMatchSelector selector in SendContainerWrapper component (#1966)" This reverts commit 1bd55346c2aa980e82dac35f00dcc9e17617fef9. --- packages/frontend/src/components/send/SendContainerWrapper.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/frontend/src/components/send/SendContainerWrapper.js b/packages/frontend/src/components/send/SendContainerWrapper.js index 2503e59803..2c1c069765 100644 --- a/packages/frontend/src/components/send/SendContainerWrapper.js +++ b/packages/frontend/src/components/send/SendContainerWrapper.js @@ -1,4 +1,3 @@ -import { createMatchSelector } from 'connected-react-router'; import { utils } from 'near-api-js'; import React, { useEffect, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; @@ -21,9 +20,8 @@ const { parseNearAmount, formatNearAmount } = utils.format; const { fetchTokens } = tokensActions; export function SendContainerWrapper({ match }) { + const accountIdFromUrl = match.params.accountId || ''; const dispatch = useDispatch(); - - const accountIdFromUrl = useSelector(createMatchSelector('/send-money/:accountId?'))?.params.accountId || ''; const accountId = useSelector(selectAccountId); const localAlert = useSelector(selectStatusLocalAlert); const nearTokenFiatValueUSD = useSelector(selectNearTokenFiatValueUSD);