feat: add paypal donation to modals and certificates

This commit is contained in:
Mrugesh Mohapatra
2020-03-19 18:48:58 +05:30
committed by mrugesh
parent c30f0dbf0d
commit 585527d145
9 changed files with 35 additions and 60 deletions

View File

@@ -181,6 +181,12 @@ export const shouldRequestDonationSelector = state => {
const isDonating = isDonatingSelector(state);
const canRequestBlockDonation = canRequestBlockDonationSelector(state);
const debugModal = localStorage.getItem('DEBUG_DONATE_MODAL', false);
console.log(debugModal);
if (debugModal === 'yes-please') {
return true;
}
// don't request donation if already donating
if (isDonating) return false;