mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-15 16:42:10 +03:00
fixed pull to refresh bug in points screen
This commit is contained in:
parent
bdc5dc070d
commit
c7940a92a8
@ -95,7 +95,7 @@ const AssetDetailsScreen = ({ navigation, route }: AssetDetailsScreenProps) => {
|
||||
|
||||
const _fetchDetails = async (refresh = false) => {
|
||||
if (refresh) {
|
||||
walletQuery.refresh();
|
||||
walletQuery?.refetch();
|
||||
} else if (noMoreActivities || loading) {
|
||||
console.log('Skipping transaction fetch', completedActivities.lastItem?.trxIndex);
|
||||
return;
|
||||
@ -221,7 +221,7 @@ const AssetDetailsScreen = ({ navigation, route }: AssetDetailsScreenProps) => {
|
||||
header={_renderHeaderComponent}
|
||||
completedActivities={completedActivities}
|
||||
pendingActivities={coinActivities?.pending || []}
|
||||
refreshing={refreshing || walletQuery.isRefreshing}
|
||||
refreshing={refreshing || walletQuery.isRefetching}
|
||||
loading={loading}
|
||||
isEngine={coinData?.isEngine}
|
||||
onEndReached={_fetchDetails}
|
||||
|
Loading…
Reference in New Issue
Block a user