diff --git a/web/package.json b/web/package.json index 1784de69..cdff8f51 100644 --- a/web/package.json +++ b/web/package.json @@ -1,6 +1,6 @@ { "name": "themer.dev", - "version": "1.8.1", + "version": "1.8.2", "private": true, "dependencies": { "@stripe/react-stripe-js": "^1.1.2", diff --git a/web/src/CheckoutModal.js b/web/src/CheckoutModal.js index 963b2b6e..9f446c34 100644 --- a/web/src/CheckoutModal.js +++ b/web/src/CheckoutModal.js @@ -88,12 +88,12 @@ const CheckoutModal = ({ price, onClose, onComplete }) => { setError(evt.error ? evt.error.message : ''); }; - const [consent, setConsent] = useState(true); + const [consent, setConsent] = useState(false); const submit = async (evt) => { evt.preventDefault(); setProcessing(true); - if (consent) { + if (consent || !isPurchase) { try { await window.fetch('/api/user', { method: 'POST', @@ -209,7 +209,7 @@ const CheckoutModal = ({ price, onClose, onComplete }) => { style={{ color: getActiveColorOrFallback(['shade4']) }} > No spam. Just occasional updates to your theme, discounts, freebies, - and other perks. + and other perks. Unsubscribe at any time.
{error ? (