Skip to content

Commit 158804c

Browse files
authored
Fix wrong ui state for routing peer modal in networks (#436)
1 parent 14d2d68 commit 158804c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/modules/networks/routing-peers/NetworkRoutingPeerModal.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function RoutingPeerModalContent({
110110
});
111111

112112
const [masquerade, setMasquerade] = useState<boolean>(
113-
router?.masquerade || true,
113+
router ? router.masquerade : true,
114114
);
115115
const [metric, setMetric] = useState(
116116
router?.metric ? router.metric.toString() : "9999",
@@ -293,9 +293,7 @@ function RoutingPeerModalContent({
293293
<Paragraph className={"text-sm mt-auto"}>
294294
Learn more about
295295
<InlineLink
296-
href={
297-
"https://docs.netbird.io/how-to/networks#routing-peers"
298-
}
296+
href={"https://docs.netbird.io/how-to/networks#routing-peers"}
299297
target={"_blank"}
300298
>
301299
Routing Peers

0 commit comments

Comments
 (0)