mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-15 16:42:10 +03:00
Merge pull request #2581 from ecency/sa/refresh-bug
[Bug Fix] pull to refresh causing crash in points screen inside wallet
This commit is contained in:
commit
b8a1ec8d45
@ -652,7 +652,7 @@
|
||||
"amount_information": "Drag the slider to adjust the amount",
|
||||
"amount": "Amount",
|
||||
"memo": "Memo",
|
||||
"information": "Are you sure to transfer funds?",
|
||||
"information": "Continue transaction?",
|
||||
"amount_desc": "Balance",
|
||||
"memo_desc": "This memo is public",
|
||||
"convert_desc": "Convert takes 3.5 days and NOT recommended IF HBD price is higher than $1",
|
||||
|
@ -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