From 4f72b25de376f73c42cde3a96f92c4469593a0d3 Mon Sep 17 00:00:00 2001 From: Felipe Sales Date: Wed, 30 Oct 2024 17:08:07 -0300 Subject: [PATCH] Fix lint suggestions --- react/hooks/useSession.ts | 2 +- react/utils/compatibilityLayer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/react/hooks/useSession.ts b/react/hooks/useSession.ts index ed1ea938e..ceced56aa 100644 --- a/react/hooks/useSession.ts +++ b/react/hooks/useSession.ts @@ -27,7 +27,7 @@ const useSession = () => { } return JSON.parse(data.namespaces.public.shippingOption.value) - }, []) + }, [rootPath]) return { getSession } } diff --git a/react/utils/compatibilityLayer.js b/react/utils/compatibilityLayer.js index c1f2d9f1c..583bff626 100644 --- a/react/utils/compatibilityLayer.js +++ b/react/utils/compatibilityLayer.js @@ -54,7 +54,7 @@ export const buildSelectedFacetsAndFullText = (query, map, priceRange) => { } const addMap = facet => { - facet['map'] = facet.key + facet.map = facet.key if (facet.children) { facet.children.forEach(facetChild => addMap(facetChild))