diff --git a/nixosModules/ags/config/widgets/bar/items/network.tsx b/nixosModules/ags/config/widgets/bar/items/network.tsx index 84777a82..a107a322 100644 --- a/nixosModules/ags/config/widgets/bar/items/network.tsx +++ b/nixosModules/ags/config/widgets/bar/items/network.tsx @@ -29,20 +29,24 @@ export default () => { return ( {/* Make sure the AP is there before binding to it */} - {bind(Wifi, 'accessPoints').as((aps) => aps.length !== 0 && ( - <> - + {bind(Wifi, 'accessPoints').as((aps) => { + if (aps.length === 0) { return; } - - {bind(Wifi, 'activeAccessPoint').as((ap) => ap && ( - - - ))} + return ( + <> + + + + {bind(Wifi, 'activeAccessPoint').as((ap) => ap && ( + + + ); + })} ); }