Skip to content

Commit

Permalink
refactor: add isCampaignDetailsPage check
Browse files Browse the repository at this point in the history
  • Loading branch information
alaca committed Nov 14, 2024
1 parent b4bd658 commit dc269fe
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ const donationStatus = [

const urlParams = new URLSearchParams(window.location.search);

const isCampaignDetailsPage =
urlParams.get('id') && urlParams.get('page') && 'give-campaigns' === urlParams.get('page');
const isCampaignDetailsPage = urlParams.get('id') && 'give-campaigns' === urlParams.get('page');
const campaignId = urlParams.get('id');

const donationFormsFilters: Array<FilterConfig> = [
Expand Down Expand Up @@ -352,7 +351,7 @@ export default function DonationFormsListTable() {
</a>
</>
)}
{state.showDefaultFormTooltip && (
{state.showDefaultFormTooltip && isCampaignDetailsPage && (
<DefaultFormNotice handleClick={handleDefaultFormTooltipDismiss} />
)}
</ListTablePage>
Expand Down

0 comments on commit dc269fe

Please sign in to comment.