fix(notices): pass the Patreon handler in the modal test, logical sides in the card drawings, no non-null assertions

This commit is contained in:
Maurice
2026-11-23 21:25:39 +01:00
parent 34e28d082d
commit aab09afc53
3 changed files with 22 additions and 20 deletions
@@ -567,7 +567,7 @@ function useSystemNoticeModal(notices: SystemNoticeDTO[]) {
// Both buttons only render when the notice carries the matching cta.
function handleCTA() { runCta(notice!.cta!); }
function handleSecondaryCTA() { runCta(notice!.secondaryCta!); }
function handleTertiaryCTA() { runCta(notice!.tertiaryCta!); }
function handleTertiaryCTA() { if (notice?.tertiaryCta) runCta(notice.tertiaryCta); }
function animatedDismissAll() {
const sheet = sheetRef.current;