Skip to content

Commit 4c7f1b4

Browse files
committed
chore(new-issuer): implement review changes
1 parent b69af0b commit 4c7f1b4

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

  • packages/new-polymath-issuer/src/pages/DividendsWizard

packages/new-polymath-issuer/src/pages/DividendsWizard/Container.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import { Page } from '@polymathnetwork/new-ui';
2222
import { range, padStart, flatten, map, every } from 'lodash';
2323
import { polyClient } from '~/lib/polyClient';
2424
import { GetErc20BalanceByAddressAndWalletArgs } from '~/types';
25-
import { DIVIDEND_PAYMENT_INVESTOR_BATCH_SIZE } from '~/constants';
2625
import { push } from 'redux-little-router';
2726

2827
const actions = {
@@ -237,6 +236,7 @@ export class ContainerBase extends Component<Props, State> {
237236
render={(dividendsData: {
238237
[key: string]: types.DividendEntity[];
239238
}) => {
239+
console.log(dividendsData);
240240
const allDividendsCompleted = every(
241241
flatten(
242242
map(dividendsData, dividends =>
@@ -248,13 +248,8 @@ export class ContainerBase extends Component<Props, State> {
248248
!investor.paymentReceived && !investor.excluded
249249
).length;
250250

251-
const remainingTransactions = Math.ceil(
252-
remainingPayments /
253-
DIVIDEND_PAYMENT_INVESTOR_BATCH_SIZE
254-
);
255-
256251
return (
257-
expiry <= new Date() || remainingTransactions === 0
252+
expiry <= new Date() || remainingPayments === 0
258253
);
259254
})
260255
)

0 commit comments

Comments
 (0)