Skip to content

Commit

Permalink
Merge pull request #42 from mediaopt/feature/35186-merchantid
Browse files Browse the repository at this point in the history
#35186 fix setting merchant id
  • Loading branch information
JonYeb authored Nov 30, 2023
2 parents dae4036 + ecebe01 commit cf49863
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "paypal-commercetools-client",
"version": "0.0.67",
"version": "0.0.68",
"private": false,
"type": "module",
"license": "MIT",
Expand Down
3 changes: 1 addition & 2 deletions src/app/useSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ export const SettingsProvider: FC<
useEffect(() => {
if (!settings) {
value.handleGetSettings();
} else if (settings?.merchantId) {
options.merchantId = settings.merchantId;
}
}, [settings]);

Expand All @@ -126,6 +124,7 @@ export const SettingsProvider: FC<
intent: settings.payPalIntent.toString().toLowerCase(),
dataUserIdToken: userIdToken,
dataPartnerAttributionId: PARTNER_ATTRIBUTION_ID,
merchantId: settings.merchantId,
}}
>
{children}
Expand Down

0 comments on commit cf49863

Please sign in to comment.