Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
timowestnosto committed Jan 7, 2025
1 parent 193f7b8 commit a64369e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export type InitProps = {
scriptLoader?: (scriptSrc: string, options?: ScriptLoadOptions) => Promise<void>
}

function initShopifyInternational({ env, merchantId, shopifyInternational, scriptLoader }: InitProps) {
function initShopifyInternationalScript({ env, merchantId, shopifyInternational, scriptLoader }: InitProps) {
const existingScript = document.querySelector("script[nosto-language], script[nosto-market-id]")

const marketId = String(shopifyInternational?.marketId || "")
Expand Down Expand Up @@ -60,7 +60,7 @@ function initShopifyInternational({ env, merchantId, shopifyInternational, scrip
*/
export function init(initProps: InitProps) {
if (initProps.shopifyInternational) {
return initShopifyInternational(initProps)
return initShopifyInternationalScript(initProps)
}
const { merchantId, env, options, scriptLoader } = initProps
const loader = scriptLoader ?? defaultScriptLoader
Expand Down

0 comments on commit a64369e

Please sign in to comment.