fix: remove unused PAYPAL_SUPPORTERS var (#40361)

This commit is contained in:
Ahmad Abdolsaheb
2020-12-01 16:51:24 +03:00
committed by GitHub
parent 1ef12d5605
commit bfc4c33b0c
3 changed files with 1 additions and 18 deletions

View File

@@ -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 {