drop hard minimum checks
This commit is contained in:
parent
eac8b345d9
commit
8598eab3b3
2 changed files with 2 additions and 25 deletions
|
@ -53,16 +53,9 @@ class ChannelSection extends React.PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleCreateChannelClick(event) {
|
handleCreateChannelClick(event) {
|
||||||
const min = this.minChannelBid();
|
|
||||||
|
|
||||||
if (this.state.newChannelName.length < 5) {
|
if (this.state.newChannelName.length < 5) {
|
||||||
this.refs.newChannelName.showError(
|
this.refs.newChannelName.showError(
|
||||||
__("LBRY channel names must be at least 4 characters in length.")
|
__("LBRY channel names must be at least 5 characters in length.")
|
||||||
);
|
|
||||||
return;
|
|
||||||
} else if (this.state.newChannelBid < min) {
|
|
||||||
this.refs.newChannelName.showError(
|
|
||||||
__(`The minimum amount is ${min} credits.`)
|
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -95,10 +88,6 @@ class ChannelSection extends React.PureComponent {
|
||||||
this.props.createChannel(newChannelName, amount).then(success, failure);
|
this.props.createChannel(newChannelName, amount).then(success, failure);
|
||||||
}
|
}
|
||||||
|
|
||||||
minChannelBid() {
|
|
||||||
return 0.000178;
|
|
||||||
}
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const lbcInputHelp = __(
|
const lbcInputHelp = __(
|
||||||
"This LBC remains yours and the deposit can be undone at any time."
|
"This LBC remains yours and the deposit can be undone at any time."
|
||||||
|
|
|
@ -181,10 +181,6 @@ class PublishForm extends React.PureComponent {
|
||||||
return !!myClaims.find(claim => claim.name === name);
|
return !!myClaims.find(claim => claim.name === name);
|
||||||
}
|
}
|
||||||
|
|
||||||
minClaimBid() {
|
|
||||||
return 0.000097;
|
|
||||||
}
|
|
||||||
|
|
||||||
topClaimIsMine() {
|
topClaimIsMine() {
|
||||||
const myClaimInfo = this.myClaimInfo();
|
const myClaimInfo = this.myClaimInfo();
|
||||||
const { claimsByUri } = this.props;
|
const { claimsByUri } = this.props;
|
||||||
|
@ -307,16 +303,8 @@ class PublishForm extends React.PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleBidChange(event) {
|
handleBidChange(event) {
|
||||||
const value = event.target.value;
|
|
||||||
const min = this.minClaimBid();
|
|
||||||
|
|
||||||
if (value < min) {
|
|
||||||
this.refs.bid.showError(__(`The minimum amount is ${min} credits.`));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
bid: value,
|
bid: event.target.value,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue