hide when no livestream claims

This commit is contained in:
zeppi 2021-03-30 12:29:28 -04:00
parent dd01ad2cb2
commit f8199d763c

View file

@ -227,14 +227,16 @@ export default function LivestreamSetupPage(props: Props) {
/> />
</div> </div>
)} )}
<div className="section"> {Boolean(livestreamClaims.length) && (
<ClaimList <div className="section">
header={__('Your livestream uploads')} <ClaimList
uris={livestreamClaims header={__('Your livestream uploads')}
.filter((c) => !pendingLiveStreamClaims.some((p) => p.permanent_url === c.permanent_url)) uris={livestreamClaims
.map((claim) => claim.permanent_url)} .filter((c) => !pendingLiveStreamClaims.some((p) => p.permanent_url === c.permanent_url))
/> .map((claim) => claim.permanent_url)}
</div> />
</div>
)}
</> </>
) : ( ) : (
<Yrbl <Yrbl