Skip to content

Commit

Permalink
adding condition for base recurring for tab on donations
Browse files Browse the repository at this point in the history
  • Loading branch information
kkatusic committed Dec 13, 2024
1 parent c8af0ea commit 9e56dbd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/views/donate/DonationCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ export const DonationCard: FC<IDonationCardProps> = ({
address.chainType === ChainType.EVM &&
address.networkId === config.OPTIMISM_NETWORK_NUMBER,
);
const hasBaseAddress =
addresses &&
addresses.some(
address =>
address.chainType === ChainType.EVM &&
address.networkId === config.BASE_NETWORK_NUMBER,
);
const isEndaomentProject = project?.organization?.label === 'endaoment';
const isOwnerOnEVM =
project?.adminUser?.walletAddress &&
Expand Down Expand Up @@ -173,7 +180,7 @@ export const DonationCard: FC<IDonationCardProps> = ({
})}
</Tab>
{!disableRecurringDonations &&
hasOpAddress &&
(hasOpAddress || hasBaseAddress) &&
isOwnerOnEVM ? (
<Tab
$selected={tab === ETabs.RECURRING}
Expand Down

0 comments on commit 9e56dbd

Please sign in to comment.