Skip to content

Commit

Permalink
Fix syntax error on line 22 of Link.js
Browse files Browse the repository at this point in the history
A previous commit (linked to Paratron#146) inserted an extra ')' to close the if statement, leading to a syntax error.  This very simple commit fixes it.
  • Loading branch information
ogazitt authored Dec 21, 2020
1 parent e0ceb4a commit 47de5b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 47de5b1

Please sign in to comment.