Skip to content

Commit 5a03802

Browse files
committed
fix(utility): fixed utility not working properly
1 parent e912e7a commit 5a03802

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/utilities/src/utilities/smoothScroll/smoothScroll.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323
const smoothScroll = (e, selector) => {
2424
let getSelector;
25-
if (e) {
25+
if (e !== null) {
2626
e.preventDefault();
2727
getSelector = e.currentTarget.getAttribute('href');
2828
} else if (selector) {

0 commit comments

Comments
 (0)