fix: publish bid help text
This commit is contained in:
parent
9ca18433ff
commit
63364b664c
3 changed files with 8 additions and 6 deletions
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue