Skip to content

Commit

Permalink
Fix useScaffoldEventHistory hook new events order (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
damianmarti authored Nov 23, 2023
1 parent d477558 commit 6053ad5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const useScaffoldEventHistory = <
});
}
if (events && typeof fromBlock === "undefined") {
setEvents([...events, ...newEvents]);
setEvents([...newEvents, ...events]);
} else {
setEvents(newEvents);
}
Expand Down

0 comments on commit 6053ad5

Please sign in to comment.