diff --git a/src/navigation/wallet-connect/components/WalletSelector.tsx b/src/navigation/wallet-connect/components/WalletSelector.tsx index 289e6d452..73b8fc1b8 100644 --- a/src/navigation/wallet-connect/components/WalletSelector.tsx +++ b/src/navigation/wallet-connect/components/WalletSelector.tsx @@ -78,7 +78,8 @@ export default ({ const navigation = useNavigation(); const dispatch = useAppDispatch(); const [uri, setUri] = useState(dappUri); - const {keys, rates} = useAppSelector(({WALLET}) => WALLET); + const {keys} = useAppSelector(({WALLET}) => WALLET); + const {rates} = useAppSelector(({RATE}) => RATE); const defaultAltCurrency = useAppSelector(({APP}) => APP.defaultAltCurrency); let allWallets = Object.values(keys) diff --git a/src/navigation/wallet/components/SendToAddress.tsx b/src/navigation/wallet/components/SendToAddress.tsx index 939862199..1e473d96d 100644 --- a/src/navigation/wallet/components/SendToAddress.tsx +++ b/src/navigation/wallet/components/SendToAddress.tsx @@ -98,7 +98,8 @@ const SendToAddress = () => { const [searchInput, setSearchInput] = useState(''); const [errorMessage, setErrorMessage] = useState(''); const defaultAltCurrency = useAppSelector(({APP}) => APP.defaultAltCurrency); - const {keys, rates} = useAppSelector(({WALLET}: RootState) => WALLET); + const {keys} = useAppSelector(({WALLET}: RootState) => WALLET); + const {rates} = useAppSelector(({RATE}) => RATE); const { recipientList, setRecipientListContext, diff --git a/src/navigation/wallet/screens/GlobalSelect.tsx b/src/navigation/wallet/screens/GlobalSelect.tsx index fb91ab7d2..f9c322538 100644 --- a/src/navigation/wallet/screens/GlobalSelect.tsx +++ b/src/navigation/wallet/screens/GlobalSelect.tsx @@ -201,7 +201,8 @@ const GlobalSelect: React.FC = ({ } const theme = useTheme(); const dispatch = useAppDispatch(); - const {keys, rates} = useAppSelector(({WALLET}) => WALLET); + const {keys} = useAppSelector(({WALLET}) => WALLET); + const {rates} = useAppSelector(({RATE}) => RATE); const tokens = useAppSelector(({WALLET}: RootState) => { return { ...BitpaySupportedTokenOpts, diff --git a/src/navigation/wallet/screens/send/SendTo.tsx b/src/navigation/wallet/screens/send/SendTo.tsx index f68e1118e..1ed014f4f 100644 --- a/src/navigation/wallet/screens/send/SendTo.tsx +++ b/src/navigation/wallet/screens/send/SendTo.tsx @@ -25,7 +25,8 @@ import { getErrorString, sleep, } from '../../../../utils/helper-methods'; -import {Key, Rates} from '../../../../store/wallet/wallet.models'; +import {Key} from '../../../../store/wallet/wallet.models'; +import {Rates} from '../../../../store/rate/rate.models'; import debounce from 'lodash.debounce'; import { CheckIfLegacyBCH, @@ -201,7 +202,9 @@ const SendTo = () => { const logger = useLogger(); const route = useRoute>(); - const {keys, rates} = useAppSelector(({WALLET}: RootState) => WALLET); + const {keys} = useAppSelector(({WALLET}: RootState) => WALLET); + const {rates} = useAppSelector(({RATE}) => RATE); + const allContacts = useAppSelector(({CONTACT}: RootState) => CONTACT.list); const defaultAltCurrency = useAppSelector(({APP}) => APP.defaultAltCurrency); const theme = useTheme();