From ec65b604eb1345e1543bfaaf4b5830e338087d8f Mon Sep 17 00:00:00 2001 From: OlegYak Date: Tue, 19 Apr 2022 17:15:16 +0300 Subject: [PATCH] fix: small fix with currentLanguage in SeletToken component --- .../src/components/send/components/views/SelectToken.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/components/send/components/views/SelectToken.js b/packages/frontend/src/components/send/components/views/SelectToken.js index 13118d0b1d..18000f7c3f 100644 --- a/packages/frontend/src/components/send/components/views/SelectToken.js +++ b/packages/frontend/src/components/send/components/views/SelectToken.js @@ -2,6 +2,7 @@ import throttle from 'lodash.throttle'; import React, { useCallback, useEffect, useState } from 'react'; import { Translate } from 'react-localize-redux'; import styled from 'styled-components'; +import getCurrentLanguage from '../../../../hooks/getCurrentLanguage'; import BackArrowButton from '../../../common/BackArrowButton'; import Tokens from '../../../wallet/Tokens'; @@ -48,6 +49,7 @@ function filterTokens(tokens, searchSubstring) { const SelectToken = ({ onClickGoBack, fungibleTokens, onSelectToken, isMobile }) => { const [searchValue, setSearchValue] = useState(''); const [filteredFungibleTokens, setFilteredFungibleTokens] = useState(() => filterTokens(fungibleTokens)); + const currentLanguage = getCurrentLanguage(); const throttledSetFilteredTokens = useCallback(throttle( (tokens, searchSubstring) => { @@ -82,7 +84,7 @@ const SelectToken = ({ onClickGoBack, fungibleTokens, onSelectToken, isMobile }) - + ); };