mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 10:45:10 +02:00
Fix filter
This commit is contained in:
parent
de48385a7e
commit
f1cc7c8336
@ -91,7 +91,7 @@ const EventViewer = (obj) => {
|
||||
// Filter by minimum value
|
||||
if (amountFilter !== "") {
|
||||
if (parseFloat(amountFilter) > eventObj.eventValue) {
|
||||
return null;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
// Filter name on from, to, caller
|
||||
@ -100,7 +100,7 @@ const EventViewer = (obj) => {
|
||||
if (eventObj.eventCaller.toLowerCase().includes(searchTerm.toLowerCase())) isFiltered = false;
|
||||
if (eventObj.eventFrom.toLowerCase().includes(searchTerm.toLowerCase())) isFiltered = false;
|
||||
if (eventObj.eventTo.toLowerCase().includes(searchTerm.toLowerCase())) isFiltered = false;
|
||||
if (isFiltered) return null;
|
||||
if (isFiltered) continue;
|
||||
}
|
||||
// Filter Events on filter buttons
|
||||
let isFiltered = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user