diff --git a/src/components/scenes/TransactionListScene.tsx b/src/components/scenes/TransactionListScene.tsx index 4643098b6ba..a3d28d1fbaf 100644 --- a/src/components/scenes/TransactionListScene.tsx +++ b/src/components/scenes/TransactionListScene.tsx @@ -232,9 +232,9 @@ function TransactionListComponent(props: Props) { } else if (isSearching) { return } else { - return + return } - }, [isTransactionListUnsupported, navigation, isSearching, tokenId, wallet]) + }, [isTransactionListUnsupported, isSearching, wallet, tokenId, route.params.countryCode, navigation]) const renderItem = useHandler(({ index, item }: ListRenderItemInfo) => { if (item == null) { diff --git a/src/components/themed/BuyCrypto.tsx b/src/components/themed/BuyCrypto.tsx index d8882ef70ea..8f198a325c0 100644 --- a/src/components/themed/BuyCrypto.tsx +++ b/src/components/themed/BuyCrypto.tsx @@ -9,6 +9,7 @@ import { useWatch } from '../../hooks/useWatch' import { toPercentString } from '../../locales/intl' import { lstrings } from '../../locales/strings' import { NavigationBase } from '../../types/routerTypes' +import { getUkCompliantString } from '../../util/ukComplianceUtils' import { CryptoIcon } from '../icons/CryptoIcon' import { cacheStyles, Theme, useTheme } from '../services/ThemeContext' import { EdgeText } from './EdgeText' @@ -20,12 +21,13 @@ interface OwnProps { wallet: EdgeCurrencyWallet tokenId: EdgeTokenId navigation: NavigationBase + countryCode?: string } type Props = OwnProps export const BuyCrypto = (props: Props) => { - const { wallet, tokenId, navigation } = props + const { countryCode, wallet, tokenId, navigation } = props const theme = useTheme() const styles = getStyles(theme) @@ -45,7 +47,7 @@ export const BuyCrypto = (props: Props) => { - {sprintf(lstrings.transaction_list_buy_crypto_message, displayName)} + {getUkCompliantString(countryCode, 'buy_1s', displayName)}