diff --git a/ui/component/publishForm/view.jsx b/ui/component/publishForm/view.jsx index 0bb248f69..e5ae2e4d2 100644 --- a/ui/component/publishForm/view.jsx +++ b/ui/component/publishForm/view.jsx @@ -8,7 +8,7 @@ File upload is carried out in the background by that function. */ -import { SITE_NAME, ENABLE_NO_SOURCE_CLAIMS } from 'config'; +import { SITE_NAME, ENABLE_NO_SOURCE_CLAIMS, SIMPLE_SITE } from 'config'; import React, { useEffect } from 'react'; import { buildURI, isURIValid, isNameValid, THUMBNAIL_STATUSES } from 'lbry-redux'; import Button from 'component/button'; @@ -123,7 +123,7 @@ function PublishForm(props: Props) { : Object.values(PUBLISH_MODES).filter((mode) => mode !== PUBLISH_MODES.LIVESTREAM); const MODE_TO_I18N_STR = { - [PUBLISH_MODES.FILE]: 'File', + [PUBLISH_MODES.FILE]: SIMPLE_SITE ? 'Video' : 'File', [PUBLISH_MODES.POST]: 'Post --[noun, markdown post tab button]--', [PUBLISH_MODES.LIVESTREAM]: 'Livestream --[noun, livestream tab button]--', }; diff --git a/ui/page/livestreamSetup/view.jsx b/ui/page/livestreamSetup/view.jsx index 35d2eec07..ac01cbf79 100644 --- a/ui/page/livestreamSetup/view.jsx +++ b/ui/page/livestreamSetup/view.jsx @@ -58,8 +58,10 @@ export default function LivestreamSetupPage(props: Props) { } const [livestreamClaims, setLivestreamClaims] = React.useState([]); - // $FlowFixMe - const pendingLiveStreamClaims = pendingClaims.filter((claim) => !(claim && claim.value && claim.value.source)); + const pendingLiveStreamClaims = + // $FlowFixMe + pendingClaims ? pendingClaims.filter((claim) => !(claim && claim.value && claim.value.source)) : []; + const pendingLength = pendingLiveStreamClaims.length; const totalLivestreamClaims = pendingLiveStreamClaims.concat(livestreamClaims); React.useEffect(() => { @@ -82,7 +84,7 @@ export default function LivestreamSetupPage(props: Props) { .catch(() => { setLivestreamClaims([]); }); - }, [activeChannelClaimStr]); + }, [activeChannelClaimStr, pendingLength]); return (