Skip to content

Commit e5466f3

Browse files
committed
fix: Fix a shadowed variable
1 parent 47594f4 commit e5466f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/link.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import {connect} from "react-redux";
33

4-
function preventDefault(e) {
4+
function preventDefaultImpl(e) {
55
e.preventDefault();
66
e.stopPropagation();
77
}
@@ -13,7 +13,7 @@ function LinkBase({
1313
href,
1414
currentHostUrl,
1515
navigateTo = navigateToImpl,
16-
preventDefault = preventDefault,
16+
preventDefault = preventDefaultImpl,
1717
disableAjaxLinks = global.disableAjaxLinks || global.disableAjaxNavigation,
1818
...otherProps
1919
}) {

0 commit comments

Comments
 (0)