coerce null to empty string for flow

this is a bad way to satisfy flow, probably, but it'll work.
This commit is contained in:
DispatchCommit 2021-03-22 15:19:56 -07:00
parent 7a327596cd
commit 3446b63768

View file

@ -13,7 +13,7 @@ export default function LivestreamLink(props: Props) {
const { channelClaim } = props;
const [livestreamClaim, setLivestreamClaim] = React.useState(false);
const [isLivestreaming, setIsLivestreaming] = React.useState(false);
const livestreamChannelId = channelClaim.claim_id;
const livestreamChannelId = channelClaim.claim_id || ''; // TODO: fail in a safer way, probably
React.useEffect(() => {
Lbry.claim_search({