Skip to content

Commit 47de5b1

Browse files
authored
Fix syntax error on line 22 of Link.js
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.
1 parent e0ceb4a commit 47de5b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Link.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {navigate, getBasepath} from "./router";
1919
*/
2020
export const setLinkProps = (props) => {
2121
const onClick = (e) => {
22-
if (!e.shiftKey && !e.ctrlKey && !e.altKey && !e.metaKey && props.target !== "_blank")) {
22+
if (!e.shiftKey && !e.ctrlKey && !e.altKey && !e.metaKey && props.target !== "_blank") {
2323
e.preventDefault(); // prevent the link from actually navigating
2424
navigate(e.currentTarget.href);
2525
}

0 commit comments

Comments
 (0)