From 250f5bb0d077cbd5ff3a68786a3aacaf4ba195dd Mon Sep 17 00:00:00 2001 From: noumantahir Date: Sun, 8 Jan 2023 01:18:37 +0500 Subject: [PATCH] refetching unclaimed query with data refresh --- src/screens/wallet/screen/walletScreen.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/screens/wallet/screen/walletScreen.tsx b/src/screens/wallet/screen/walletScreen.tsx index 31b0a5a64..6b1812066 100644 --- a/src/screens/wallet/screen/walletScreen.tsx +++ b/src/screens/wallet/screen/walletScreen.tsx @@ -44,7 +44,6 @@ import { ManageAssets } from '../children/manageAssets'; import { claimRewards } from '../../../providers/hive-engine/hiveEngineActions'; import { fetchEngineMarketData } from '../../../providers/hive-engine/hiveEngine'; import { useGetAssetsQuery, useUnclaimedRewardsQuery } from '../../../providers/queries'; -import { delay } from '../../../utils/editor'; const CHART_DAYS_RANGE = 1; @@ -52,8 +51,6 @@ const WalletScreen = ({ navigation }) => { const intl = useIntl(); const dispatch = useAppDispatch(); - - //refs const appState = useRef(AppState.currentState); @@ -157,6 +154,7 @@ const WalletScreen = ({ navigation }) => { } await walletQuery.refetch() + await unclaimedRewardsQuery.refetch(); setIsRefreshing(false); };