Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/extension-chakra-store-locator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"prop-types": "^15",
"react": "^18",
"react-dom": "^18",
"react-router-dom": "^5.3.4"
"react-router-dom": "^5.3.4",
"react-hook-form": "^7"
},
"peerDependenciesMeta": {
"@chakra-ui/react": {
Expand All @@ -53,6 +54,9 @@
},
"react-dom": {
"optional": true
},
"react-hook-form": {
"optional": true
}
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,13 @@ const Header = ({
{...styles.icons}
variant="unstyled"
onClick={() => {
openModal()
if (
!window.location.pathname.includes(
storeLocatorExtension.config.path
)
Copy link
Contributor

@alexvuong alexvuong Jan 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it throw if storeLocatorExtension is undefined?
p/s nvm. Saw the conditional rendering above.

) {
openModal()
}
}}
/>
)}
Expand Down
Loading