Rm not-null assert

This commit is contained in:
Eric Bailey
2026-05-22 14:30:21 -05:00
parent 785fc26ec4
commit 281ce95850
@@ -453,11 +453,13 @@ export function SubscribeButton({
? l`Subscribe on ${highlightedPublisher.name}` ? l`Subscribe on ${highlightedPublisher.name}`
: l`View publication` : l`View publication`
if (!view.source) return null
return ( return (
<StandardSiteThemeProvider view={view}> <StandardSiteThemeProvider view={view}>
<Link <Link
shouldProxy shouldProxy
to={view.source!.uri} to={view.source.uri}
label={cta} label={cta}
size="small" size="small"
color="secondary_inverted" color="secondary_inverted"