Skip to content

Commit

Permalink
Fix filter in mini view
Browse files Browse the repository at this point in the history
  • Loading branch information
pierr3 committed Apr 30, 2024
1 parent 59802d3 commit 23490ba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/app/components/mini.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ const Mini: React.FC = () => {
return (
<div className="box-container mini">
<div className="container">
{radios.map((radio) => {
if (radio.rx) {
{radios.filter((r) => r.rx).map((radio) => {
return (
<div
key={radio.frequency}
Expand All @@ -18,8 +17,6 @@ const Mini: React.FC = () => {
{radio.lastReceivedCallsign ? radio.lastReceivedCallsign : ""}
</div>
);
}
return null;
})}
</div>
</div>
Expand Down

0 comments on commit 23490ba

Please sign in to comment.