Skip to content

Commit

Permalink
Merge pull request #4717 from Giveth/comment-out-recurring-donation-d…
Browse files Browse the repository at this point in the history
…efault

HOTFIX: Comment-out-recurring-donation-default
  • Loading branch information
divine-comedian authored Sep 10, 2024
2 parents a5af3a5 + 924f7e3 commit f1e5c87
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/views/donate/DonationCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,13 @@ export const DonationCard: FC<IDonationCardProps> = ({
// Check if the 'tab' query parameter is not present in the URL and project 'hasOpAddress' is true.
// If both conditions are met, set the active tab to 'RECURRING' using the setTab function.
// This ensures that the 'RECURRING' tab is active by default if project has Op Address.
useEffect(() => {
if (!router.query.tab && hasOpAddress && !isEndaomentProject) {
setTab(ETabs.RECURRING);
}
}, [router.query, hasOpAddress, isEndaomentProject]);
//
// this feature needs some more polish, commenting this out for now --mitch
// useEffect(() => {
// if (!router.query.tab && hasOpAddress && !isEndaomentProject) {
// setTab(ETabs.RECURRING);
// }
// }, [router.query, hasOpAddress, isEndaomentProject]);

return (
<DonationCardWrapper>
Expand Down

0 comments on commit f1e5c87

Please sign in to comment.