Skip to content

Commit 79fcf21

Browse files
committed
changes in shop animation
1 parent 46f8cd0 commit 79fcf21

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/components/ShopMenu/ShopMenu.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ const ShopMenu = ({ shopOpen, setShopOpen, onShopClick, onShopKeyDown }) => {
165165

166166
// Handle navigation to collection
167167
const handleCollectionClick = (collectionName) => {
168-
const url = `https://corexshoptest.onrender.com/api/collections/${collectionName.toLowerCase()}`;
168+
const encodedName = encodeURIComponent(collectionName.toLowerCase());
169+
const url = `https://corexshoptest.onrender.com/api/collections/${encodedName}`;
169170
window.open(url, '_blank');
170171
handleCloseMenu();
171172
};
@@ -503,4 +504,4 @@ const ShopMenu = ({ shopOpen, setShopOpen, onShopClick, onShopKeyDown }) => {
503504
);
504505
};
505506

506-
export default ShopMenu;
507+
export default ShopMenu;

0 commit comments

Comments
 (0)