Skip to content

Commit

Permalink
Fix Venmo donations (#430)
Browse files Browse the repository at this point in the history
* Check fixedFrequency

* Switch from /irc to /wphfund for examples
  • Loading branch information
markulrich authored Nov 30, 2024
1 parent b3ef149 commit 788c39d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ export const DefaultFlow = () => {
<ErrorMessage message={submitError} />
<SubmitButton
disabled={
!frequency || !donationAmount || Number.isNaN(donationAmount)
(!frequency && !fixedFrequency) ||
!donationAmount ||
Number.isNaN(donationAmount)
}
>
{getSubmitButtonText({
Expand Down
14 changes: 7 additions & 7 deletions packages/donate-button-v4/src/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@
<div>
<a
style="font-size: 30px; margin-top: 10px"
href="https://www.every.org/irc#/donate"
href="https://www.every.org/wphfund#/donate"
>Donate</a
>
</div>
<div>
<a
style="font-size: 30px; margin-top: 10px"
href="https://www.every.org/irc?suggestedAmounts=2500,25000,250000&method=daf#/donate"
href="https://www.every.org/wphfund?suggestedAmounts=2500,25000,250000&method=daf#/donate"
>Donate DAF</a
>
</div>
<div>
<a
style="font-size: 30px; margin-top: 10px"
href="https://www.every.org/irc?utm_campaign=donate-link&method=stocks#/donate"
href="https://www.every.org/wphfund?utm_campaign=donate-link&method=stocks#/donate"
>Donate Asset</a
>
</div>
<div>
<a
style="font-size: 30px; margin-top: 10px"
href="https://www.every.org/irc?utm_campaign=donate-link&method=crypto#/donate/crypto"
href="https://www.every.org/wphfund?utm_campaign=donate-link&method=crypto#/donate/crypto"
>Donate Crypto</a
>
</div>
Expand All @@ -47,20 +47,20 @@
<div>
<a
style="font-size: 30px; margin-top: 10px"
href="https://www.every.org/irc?amount=10#/donate"
href="https://www.every.org/wphfund?amount=10#/donate"
>Donate $10</a
>
</div>
<div>
<a
style="font-size: 30px; margin-top: 10px"
href="https://www.every.org/irc?frequency=once#/donate"
href="https://www.every.org/wphfund?frequency=once#/donate"
>Donate Once</a
>
<div>
<a
style="font-size: 30px; margin-top: 10px"
href="https://www.every.org/irc?amount=10&frequency=once#/donate"
href="https://www.every.org/wphfund?amount=10&frequency=once#/donate"
>Donate Once $10</a
>
</div>
Expand Down

0 comments on commit 788c39d

Please sign in to comment.