fixed crash caused by null quotes in coinDetailsScreen

This commit is contained in:
Nouman Tahir 2022-05-12 13:01:00 +05:00
parent 23974fc311
commit 4681ddae13

View File

@ -42,7 +42,7 @@ const CoinDetailsScreen = ({ navigation }: CoinDetailsScreenProps) => {
const globalProps = useAppSelector(state => state.account.globalProps);
const selectedCoins = useAppSelector(state => state.wallet.selectedCoins);
const coinData: CoinData = useAppSelector(state => state.wallet.coinsData[coinId]);
const quote: QuoteItem = useAppSelector(state => state.wallet.quotes[coinId]);
const quote: QuoteItem = useAppSelector(state => state.wallet.quotes ? state.wallet.quotes[coinId] : {});
const coinActivities: CoinActivitiesCollection = useAppSelector(state => state.wallet.coinsActivities[coinId]);
const isPinCodeOpen = useAppSelector(state => state.application.isPinCodeOpen);