Skip to content

Commit

Permalink
double exclam
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth Sahay committed May 22, 2024
1 parent 7d59ba2 commit 1b8e306
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/NostoProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default function NostoProvider(props: NostoProviderProps) {
host,
children,
recommendationComponent,
shopifyMarkets,
shopifyMarkets= {},
} = props
const [clientScriptLoadedState, setClientScriptLoadedState] = React.useState(false)
const clientScriptLoaded = React.useMemo(() => clientScriptLoadedState, [clientScriptLoadedState])
Expand Down Expand Up @@ -160,7 +160,7 @@ export default function NostoProvider(props: NostoProviderProps) {
}

// Enable Shopify markets functionality:
if (shopifyMarkets) {
if (!!shopifyMarkets) {

Check failure on line 163 in src/components/NostoProvider.tsx

View workflow job for this annotation

GitHub Actions / Build and Test

Redundant double negation
const existingScript = document.querySelector("[nosto-client-script]")
const nostoSandbox = document.querySelector("#nosto-sandbox")

Expand Down

0 comments on commit 1b8e306

Please sign in to comment.