Only get first 50 activity items

This commit is contained in:
benthecarman
2024-04-04 23:51:10 -05:00
committed by Tony Giorgio
parent d716cec83e
commit 3d24fcfe95

View File

@@ -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);