forked from Kieran/snort
bug: thread loader missing some event ids
This commit is contained in:
parent
7680b16ab5
commit
61106c5d19
@ -14,8 +14,9 @@ export default function useThreadFeed(id: u256) {
|
||||
function addId(id: u256[]) {
|
||||
setTrackingEvent((s) => {
|
||||
let orig = new Set(s);
|
||||
if (!id.some(a => orig.has(a))) {
|
||||
let tmp = new Set([...s, ...id]);
|
||||
let idsMissing = id.filter(a => !orig.has(a));
|
||||
if (idsMissing.length > 0) {
|
||||
let tmp = new Set([...s, ...idsMissing]);
|
||||
return Array.from(tmp);
|
||||
} else {
|
||||
return s;
|
||||
|
Loading…
Reference in New Issue
Block a user