Skip to content

Commit

Permalink
Merge branch 'develop' into release/v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aziolek committed Apr 11, 2024
2 parents 9fb433e + b43aefa commit 553adca
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ jobs:
curl --retry-connrefused --retry 100 --retry-delay 3 \
-s -X GET $OCTANT_BASE_URL
rm -rf $HOME/.config/Cypress
rm -rf $HOME/.config/google-chrome
yarn synpress:run
shell: bash

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import cx from 'classnames';
import React, { FC } from 'react';
import React, { FC, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import { useParams } from 'react-router-dom';

Expand All @@ -24,11 +24,19 @@ const ProjectDonorsHeader: FC<ProjectDonorsListProps> = ({
projectAddress,
epochNumber === currentEpoch ? undefined : epochNumber,
);

const numberOfDonors = useMemo(() => {
if (epochNumber === currentEpoch) {
return 0;
}
return isFetching ? '--' : projectDonors?.length;
}, [isFetching, projectDonors, epochNumber, currentEpoch]);

return (
<div className={cx(styles.header, className)} data-test={dataTest}>
<span className={styles.headerLabel}>{i18n.t('common.donors')}</span>{' '}
<div className={styles.count} data-test={`${dataTest}__count`}>
{isFetching ? '--' : projectDonors?.length}
{numberOfDonors}
</div>
</div>
);
Expand Down

0 comments on commit 553adca

Please sign in to comment.