diff --git a/src/ui/component/publishForm/view.jsx b/src/ui/component/publishForm/view.jsx index dfd7d57c8..c97fd0bc9 100644 --- a/src/ui/component/publishForm/view.jsx +++ b/src/ui/component/publishForm/view.jsx @@ -106,8 +106,10 @@ function PublishForm(props: Props) { if (channelName) { // resolve without the channel name so we know the winning bid for it - const uriLessChannel = buildURI({ contentName: name }); - resolveUri(uriLessChannel); + try { + const uriLessChannel = buildURI({ contentName: name }); + resolveUri(uriLessChannel); + } catch (e) {} } if (uri) { diff --git a/src/ui/component/publishName/view.jsx b/src/ui/component/publishName/view.jsx index ee03f8f0a..af458af21 100644 --- a/src/ui/component/publishName/view.jsx +++ b/src/ui/component/publishName/view.jsx @@ -20,7 +20,7 @@ type Props = { updatePublishForm: ({}) => void, }; -function PublishText(props: Props) { +function PublishName(props: Props) { const { name, channel, @@ -120,4 +120,4 @@ function PublishText(props: Props) { ); } -export default PublishText; +export default PublishName; diff --git a/src/ui/redux/selectors/publish.js b/src/ui/redux/selectors/publish.js index 6127c33fe..3d9e96f04 100644 --- a/src/ui/redux/selectors/publish.js +++ b/src/ui/redux/selectors/publish.js @@ -97,14 +97,14 @@ export const selectTakeOverAmount = createSelector( const claimForShortUri = claimsByUri[shortUri]; if (!myClaimForUri && claimForShortUri) { - return claimForShortUri.effective_amount; + return claimForShortUri.meta.effective_amount; } else if (myClaimForUri && claimForShortUri) { // https://github.com/lbryio/lbry/issues/1476 // We should check the current effective_amount on my claim to see how much additional lbc // is needed to win the claim. Currently this is not possible during a takeover. // With this, we could say something like, "You have x lbc in support, if you bid y additional LBC you will control the claim" // For now just ignore supports. We will just show the winning claim's bid amount - return claimForShortUri.effective_amount || claimForShortUri.amount; + return claimForShortUri.meta.effective_amount || claimForShortUri.amount; } return null;