Skip to content

Commit

Permalink
Fix wrong ui state for routing peer modal in networks
Browse files Browse the repository at this point in the history
  • Loading branch information
heisbrot committed Jan 9, 2025
1 parent 14d2d68 commit f68bff7
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function RoutingPeerModalContent({
});

const [masquerade, setMasquerade] = useState<boolean>(
router?.masquerade || true,
router ? router.masquerade : true,
);
const [metric, setMetric] = useState(
router?.metric ? router.metric.toString() : "9999",
Expand Down Expand Up @@ -293,9 +293,7 @@ function RoutingPeerModalContent({
<Paragraph className={"text-sm mt-auto"}>
Learn more about
<InlineLink
href={
"https://docs.netbird.io/how-to/networks#routing-peers"
}
href={"https://docs.netbird.io/how-to/networks#routing-peers"}
target={"_blank"}
>
Routing Peers
Expand Down

0 comments on commit f68bff7

Please sign in to comment.