mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-05 21:06:21 +03:00
refetching unclaimed query with data refresh
This commit is contained in:
parent
40a25ea312
commit
250f5bb0d0
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user