mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-14 09:48:10 -05:00
more debug
This commit is contained in:
@@ -48,9 +48,13 @@ const ListSystems = (props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let popularSystems = [];
|
let popularSystems = [];
|
||||||
if (isSuccess && systems.systems)
|
if (isSuccess && systems.systems) {
|
||||||
popularSystems = systems.systems.sort((a, b) => b.clientCount - a.clientCount).slice(0, 4);
|
const sortedSystems = systems.systems.sort((a, b) => {
|
||||||
|
|
||||||
|
return b.clientCount - a.clientCount;
|
||||||
|
});
|
||||||
|
popularSystems = sortedSystems.slice(0, 4);
|
||||||
|
}
|
||||||
const handleContactClick = (system) => {
|
const handleContactClick = (system) => {
|
||||||
setContactSystem(system);
|
setContactSystem(system);
|
||||||
setContactVisible(true);
|
setContactVisible(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user