fix minor bugs
- remove anon option in channel dropdown when livestream tab is selected - attempt to fill publish form with current active channel name just prior to publishing to (edge condition) - edge condition occurs when user fills out form fully. User switches to Post (which allows anon in drop down selector). User selects Anon channel, then switches back to the livestream tab. The form was previously updated with `channel: undefined` but does not get changed when clicking the livestream tab. So we just updated the form one last time prior to publishing as a livestream - Show most recent livestream claim on livestream setup page instead of first livestream claim
This commit is contained in:
parent
70575edfb4
commit
2ac5ad0201
2 changed files with 10 additions and 2 deletions
|
@ -314,6 +314,11 @@ function PublishForm(props: Props) {
|
||||||
runPublish = true;
|
runPublish = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// (Try to) Prevent an anon livestream claim
|
||||||
|
if (mode === PUBLISH_MODES.LIVESTREAM) {
|
||||||
|
updatePublishForm({ channel: activeChannelName });
|
||||||
|
}
|
||||||
|
|
||||||
if (runPublish) {
|
if (runPublish) {
|
||||||
if (enablePublishPreview) {
|
if (enablePublishPreview) {
|
||||||
setPreviewing(true);
|
setPreviewing(true);
|
||||||
|
@ -339,7 +344,10 @@ function PublishForm(props: Props) {
|
||||||
// Editing claim uri
|
// Editing claim uri
|
||||||
return (
|
return (
|
||||||
<div className="card-stack">
|
<div className="card-stack">
|
||||||
<ChannelSelect disabled={disabled} />
|
<ChannelSelect
|
||||||
|
hideAnon={mode === PUBLISH_MODES.LIVESTREAM}
|
||||||
|
disabled={disabled}
|
||||||
|
/>
|
||||||
|
|
||||||
<PublishFile
|
<PublishFile
|
||||||
uri={uri}
|
uri={uri}
|
||||||
|
|
|
@ -74,7 +74,7 @@ export default function CreatorDashboardPage(props: Props) {
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res && res.items && res.items.length > 0) {
|
if (res && res.items && res.items.length > 0) {
|
||||||
const claim = res.items[0];
|
const claim = res.items[res.items.length - 1];
|
||||||
setLivestreamClaim(claim);
|
setLivestreamClaim(claim);
|
||||||
} else {
|
} else {
|
||||||
setIsFetching(false);
|
setIsFetching(false);
|
||||||
|
|
Loading…
Reference in a new issue