Skip to content

Commit 2311ed4

Browse files
amittapallirasbhat
authored andcommitted
Merge branch 't/team404/sfp-on-pwa' of https://github.com/SalesforceCommerceCloud/pwa-kit into t/team404/sfp-on-pwa
merging
2 parents 6f7b705 + a671988 commit 2311ed4

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

packages/commerce-sdk-react/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/template-retail-react-app/app/components/sf-payments-express-buttons/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ const defaultProps = {
330330
}
331331

332332
// --- Shared test helpers (reused across describes) ---
333-
const flush = () => new Promise((r) => setImmediate(r))
333+
const flush = () => new Promise((r) => setTimeout(r, 0))
334334

335335
async function renderAndGetConfig(props = {}) {
336336
const prepareBasket = props.prepareBasket ?? jest.fn().mockResolvedValue(makeBasket('basket-1'))

packages/template-retail-react-app/app/pages/checkout/partials/sf-payments-sheet.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {useCurrentCustomer} from '@salesforce/retail-react-app/app/hooks/use-cur
2626
import {useCurrency} from '@salesforce/retail-react-app/app/hooks/use-currency'
2727
import {useCheckout} from '@salesforce/retail-react-app/app/pages/checkout/util/checkout-context'
2828
import {usePaymentConfiguration} from '@salesforce/commerce-sdk-react'
29-
import {useShopperConfiguration} from '@salesforce/retail-react-app/app/hooks/use-shopper-configuration'
3029
import {useSFPaymentsCountry} from '@salesforce/retail-react-app/app/hooks/use-sf-payments-country'
3130
import {
3231
STATUS_SUCCESS,
@@ -95,7 +94,7 @@ const SFPaymentsSheet = forwardRef((props, ref) => {
9594
}
9695
})
9796

98-
const zoneId = useShopperConfiguration('zoneId')
97+
const zoneId = paymentConfig?.zoneId
9998
const cardCaptureAutomatic = useAutomaticCapture()
10099
const futureUsageOffSession = useFutureUsageOffSession()
101100

0 commit comments

Comments
 (0)