Fix propagation issue on sponsor close

pull/7599/head
Kamran Ahmed 4 weeks ago committed by GitHub
parent 7e9de94b14
commit 414ce7afd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      src/components/PageSponsor.tsx

@ -163,6 +163,8 @@ export function PageSponsor(props: PageSponsorProps) {
aria-label="Close" aria-label="Close"
onClick={(e) => { onClick={(e) => {
e.preventDefault(); e.preventDefault();
e.stopPropagation();
markSponsorHidden(sponsorId || ''); markSponsorHidden(sponsorId || '');
sponsorHidden.set(true); sponsorHidden.set(true);
}} }}

Loading…
Cancel
Save