Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
fix loading state
Browse files Browse the repository at this point in the history
  • Loading branch information
alantoa committed Nov 8, 2023
1 parent 85a1a80 commit 9a59425
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/app/components/creator-token/top-creator-token.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,18 +151,18 @@ export const TopCreatorTokens = ({
);
}, [isLoading, isMdWidth]);
const renderListFooter = useCallback(() => {
if (isLoadingMore) {
if (isLoadingMore && !isLoading) {
return (
<View
tw="w-full items-center py-4"
style={{ paddingBottom: bottom + 8 }}
tw="w-full items-center pt-4"
style={{ paddingBottom: Math.max(bottom, 16) }}
>
<Spinner size="small" />
</View>
);
}
return <View style={{ height: bottom + 8 }} />;
}, [bottom, isLoadingMore]);
}, [bottom, isLoading, isLoadingMore]);

return (
<ErrorBoundary>
Expand Down

0 comments on commit 9a59425

Please sign in to comment.