diff --git a/package-lock.json b/package-lock.json index ae5890d..8fd13b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@pactsafe/pactsafe-react-sdk", - "version": "2.8.0", + "version": "2.9.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@pactsafe/pactsafe-react-sdk", - "version": "2.8.0", + "version": "2.9.0", "license": "MIT", "dependencies": { "classnames": "^2.3.2", diff --git a/package.json b/package.json index 6fbcda3..dc09e41 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pactsafe/pactsafe-react-sdk", - "version": "2.8.0", + "version": "2.9.0", "description": "Ironclad Clickwrap React SDK - SDK for easy Ironclad Clickwrap implementations leveraging the Ironclad JavaScript Library & API", "author": "Ironclad", "license": "MIT", diff --git a/src/PSClickWrap.js b/src/PSClickWrap.js index e3c7296..e774cd9 100644 --- a/src/PSClickWrap.js +++ b/src/PSClickWrap.js @@ -216,16 +216,16 @@ class PSClickWrap extends React.Component { } = this.props; const options = { allow_disagreed: allowDisagreed || false, - acceptance_language: acceptanceLanguage, + ...(acceptanceLanguage !== undefined && { acceptance_language: acceptanceLanguage }), auto_run: displayImmediately, - confirmation_email: confirmationEmail, + ...(confirmationEmail !== undefined && { confirmation_email: confirmationEmail }), container_selector: containerId, display_all: displayAll, - filter, - force_scroll: forceScroll, - render_data: renderData, - signer_id_selector: signerIdSelector, - style: clickWrapStyle, + ...(filter !== undefined && { filter }), + ...(forceScroll !== undefined && { force_scroll: forceScroll }), + ...(renderData !== undefined && { render_data: renderData }), + ...(signerIdSelector !== undefined && { signer_id_selector: signerIdSelector }), + ...(clickWrapStyle !== undefined && { style: clickWrapStyle }), }; if (injectSnippetOnly) return;