fix: remove unused PAYPAL_SUPPORTERS var (#40361)
This commit is contained in:
parent
1ef12d5605
commit
bfc4c33b0c
@ -186,8 +186,7 @@ exports.onCreateWebpackConfig = ({ stage, plugins, actions }) => {
|
||||
HOME_PATH: JSON.stringify(
|
||||
process.env.HOME_PATH || 'http://localhost:3000'
|
||||
),
|
||||
STRIPE_PUBLIC_KEY: JSON.stringify(process.env.STRIPE_PUBLIC_KEY || ''),
|
||||
PAYPAL_SUPPORTERS: JSON.stringify(process.env.PAYPAL_SUPPORTERS || 404)
|
||||
STRIPE_PUBLIC_KEY: JSON.stringify(process.env.STRIPE_PUBLIC_KEY || '')
|
||||
})
|
||||
];
|
||||
// The monaco editor relies on some browser only globals so should not be
|
||||
|
@ -1,4 +1,3 @@
|
||||
/* global PAYPAL_SUPPORTERS */
|
||||
import { createAction, handleActions } from 'redux-actions';
|
||||
import { uniqBy } from 'lodash';
|
||||
import store from 'store';
|
||||
@ -357,20 +356,6 @@ export const userSelector = state => {
|
||||
};
|
||||
|
||||
export const sessionMetaSelector = state => state[ns].sessionMeta;
|
||||
export const activeDonationsSelector = state => {
|
||||
const donors =
|
||||
Number(sessionMetaSelector(state).activeDonations) +
|
||||
Number(PAYPAL_SUPPORTERS || 0) -
|
||||
// Note 1:
|
||||
// Offset the no of inactive donations, that are not yet normalized in db
|
||||
// TODO: This data needs to be fetched and updated in db from Stripe
|
||||
2500;
|
||||
// Note 2:
|
||||
// Due to the offset above, non-prod data needs to be adjusted for -ve values
|
||||
return donors > 0
|
||||
? donors
|
||||
: Number(sessionMetaSelector(state).activeDonations);
|
||||
};
|
||||
|
||||
function spreadThePayloadOnUser(state, payload) {
|
||||
return {
|
||||
|
@ -33,7 +33,6 @@ STRIPE_CREATE_PLANS=true
|
||||
STRIPE_PUBLIC_KEY=pk_from_stripe_dashboard
|
||||
STRIPE_SECRET_KEY=sk_from_stripe_dashboard
|
||||
# PayPal
|
||||
PAYPAL_SUPPORTERS=1703
|
||||
PAYPAL_CLIENT_ID=id_from_paypal_dashboard
|
||||
PAYPAL_SECRET=secret_from_paypal_dashboard
|
||||
PAYPAL_VERIFY_WEBHOOK_URL='https://api.sandbox.paypal.com/v1/notifications/verify-webhook-signature'
|
||||
|
Loading…
x
Reference in New Issue
Block a user