Added working System config, NOT working WiFi & modem and Session pages as placeholders. Also added NPED images.
This commit is contained in:
@@ -45,6 +45,8 @@ export function useSightingFeed(url: string) {
|
||||
if (data.ref === lastSeenRef.current) return; // duplicate payload → do nothing
|
||||
lastSeenRef.current = data.ref;
|
||||
|
||||
setMostRecent(data);
|
||||
|
||||
setSightings((prev) => {
|
||||
const existing = prev.find((p) => p?.ref === data.ref);
|
||||
const next = existing
|
||||
@@ -59,7 +61,8 @@ export function useSightingFeed(url: string) {
|
||||
|
||||
return next;
|
||||
});
|
||||
setMostRecent(sightings[0]);
|
||||
// setMostRecent(sightings[0]);
|
||||
// setMostRecent(data);
|
||||
mostRecentRef.current = data.ref ?? -1;
|
||||
}, [data, selectedRef, sightings]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user