Skip to content

Commit

Permalink
Only get first 50 activity items
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman authored and TonyGiorgio committed Apr 5, 2024
1 parent d716cec commit 3d24fcf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,10 @@ export function CombinedActivity() {
const getActivity = cache(async () => {
try {
console.log("refetching activity");
const activity = await state.mutiny_wallet?.get_activity();
const activity = await state.mutiny_wallet?.get_activity(
50,
undefined
);
return (activity || []) as IActivityItem[];
} catch (e) {
console.error(e);
Expand Down

0 comments on commit 3d24fcf

Please sign in to comment.