Skip to content

Commit

Permalink
Merge pull request #378 from greymass/dev
Browse files Browse the repository at this point in the history
Hotfixes
  • Loading branch information
aaroncox authored Feb 20, 2025
2 parents 1ed30f7 + 0211bfb commit bbe60d1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/elements/action.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
id,
notified,
summary: ActionSummary,
variant = 'json'
variant = 'pretty'
}: Props = $props();
async function decode() {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/elements/trace.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
trxid?: boolean;
}
let { date = false, trace, trxid = false, summary, variant = 'json' }: Props = $props();
let { date = false, trace, trxid = false, summary, variant = 'pretty' }: Props = $props();
</script>

<ActionElement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
return scence.isLoading && !scence.list.length;
});
$inspect(JSON.stringify(activityLoader));
const hasMore = $derived(activityLoader.scene.hasMore);
const loadingText = $derived.by(() => {
const scence = activityLoader.scene;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,14 @@ export class ActivityLoader {
const activity = ActivityResponse.from(json.activity);
const nextStart = -Number(activity.last);
const hasMore = activity.actions.length > 0 && activity.last.gt(UInt64.from(0));
const filtered = activity.actions.filter((action) =>
action.action_trace.receiver.equals(account)
);
// const filtered = activity.actions.filter((action) => {
// console.log(String(account), String(action.action_trace.receiver), action);
// return action.action_trace.receiver.equals(account);
// });
if (!more) {
this.scene.setList(filtered, nextStart, hasMore);
this.scene.setList(activity.actions, nextStart, hasMore);
} else {
this.scene.appendList(filtered, nextStart, hasMore);
this.scene.appendList(activity.actions, nextStart, hasMore);
}
} catch (error: unknown) {
console.error('Error fetching activity actions:', error);
Expand Down

0 comments on commit bbe60d1

Please sign in to comment.