From 47de5b195d8915f4600bdce3b62cb1e4306c24bd Mon Sep 17 00:00:00 2001 From: Omri Gazitt Date: Mon, 21 Dec 2020 13:30:16 -0800 Subject: [PATCH] Fix syntax error on line 22 of Link.js A previous commit (linked to #146) inserted an extra ')' to close the if statement, leading to a syntax error. This very simple commit fixes it. --- src/Link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Link.js b/src/Link.js index 643815c..37c1909 100644 --- a/src/Link.js +++ b/src/Link.js @@ -19,7 +19,7 @@ import {navigate, getBasepath} from "./router"; */ export const setLinkProps = (props) => { const onClick = (e) => { - if (!e.shiftKey && !e.ctrlKey && !e.altKey && !e.metaKey && props.target !== "_blank")) { + if (!e.shiftKey && !e.ctrlKey && !e.altKey && !e.metaKey && props.target !== "_blank") { e.preventDefault(); // prevent the link from actually navigating navigate(e.currentTarget.href); }