Skip to content

Commit

Permalink
feat: hardcode js library
Browse files Browse the repository at this point in the history
  • Loading branch information
nbierdeman committed Mar 20, 2024
1 parent 8827b18 commit 95a29fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/PayPalScriptProvider.tsx
Expand Up @@ -52,7 +52,10 @@ export const PayPalScriptProvider: FC<ScriptProviderProps> = ({

let isSubscribed = true;

loadScript(state.options)
loadScript({
...state.options,
dataJsSdkLibrary: "react-paypal-js",
})
.then(() => {
if (isSubscribed) {
dispatch({
Expand Down

0 comments on commit 95a29fa

Please sign in to comment.