refetching unclaimed query with data refresh

This commit is contained in:
noumantahir 2023-01-08 01:18:37 +05:00
parent 40a25ea312
commit 250f5bb0d0

View File

@ -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);
};