Skip to content

Commit

Permalink
Further clarify language and opt out by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mjswensen committed Jul 15, 2022
1 parent 5a295a9 commit eb28754
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 3 additions & 3 deletions web/src/CheckoutModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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.
</p>
{error ? (
<Banner
Expand Down

0 comments on commit eb28754

Please sign in to comment.