Process even 1 event.

This commit is contained in:
Roland 2022-12-23 16:34:23 -07:00
parent ed4bf8fe36
commit b019d7030b
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -58,7 +58,7 @@ export function useEventsInterval() {
useRecurringTimeout(fetchEvents, 1000 * 5);
useEffect(() => {
if (events && events.length > 1) {
if (events && events.length >= 1) {
handleEvents(events);
}
}, [JSON.stringify(events)]);