Skip to content

Commit bdf378d

Browse files
authored
Merge branch 'develop' into W-17443086-select-store-from-store-locator-ui
2 parents fd8c67c + e8e9123 commit bdf378d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

packages/template-retail-react-app/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## v5.1.0-dev (TBD)
22

3+
- [BUG] Fixed GET /shopper-context API calls being made without the usid [#2206](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2206)
34
- Update test data references to 2024, and unify to 01/2040 [#2196](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2197)
45
- Fixed failing checkout tests [#2195](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2195)
56
- Allow store to be selectable in StoreLocator [#2187](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2187)

packages/template-retail-react-app/app/hooks/use-update-shopper-context.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const useUpdateShopperContext = () => {
3333
const updateShopperContext = useShopperContextsMutation('updateShopperContext')
3434
const {data: shopperContext, isLoading} = useShopperContext(
3535
{parameters: {usid, siteId: site.id}},
36-
{enabled: !isServer}
36+
{enabled: !isServer && Boolean(usid)}
3737
)
3838
// Handle updating the shopper context based on URL search params
3939
const shopperContextFromSearchParams = useShopperContextSearchParams()

packages/template-retail-react-app/app/pages/product-list/partials/page-designer-promotional-banner.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const PageDesignerPromotionalBanner = () => {
3232
const {usid} = useUsid()
3333
const {data: shopperContext} = useShopperContext(
3434
{parameters: {usid, siteId: site.id}},
35-
{enabled: !isServer}
35+
{enabled: !isServer && Boolean(usid)}
3636
)
3737

3838
const {data: promoBannerDesktop, error: pageErrorDesktop} = usePage(

0 commit comments

Comments
 (0)