drop hard minimum checks

This commit is contained in:
Jeremy Kauffman 2017-08-12 18:20:33 -04:00
parent eac8b345d9
commit 8598eab3b3
2 changed files with 2 additions and 25 deletions

View file

@ -53,16 +53,9 @@ class ChannelSection extends React.PureComponent {
}
handleCreateChannelClick(event) {
const min = this.minChannelBid();
if (this.state.newChannelName.length < 5) {
this.refs.newChannelName.showError(
__("LBRY channel names must be at least 4 characters in length.")
);
return;
} else if (this.state.newChannelBid < min) {
this.refs.newChannelName.showError(
__(`The minimum amount is ${min} credits.`)
__("LBRY channel names must be at least 5 characters in length.")
);
return;
}
@ -95,10 +88,6 @@ class ChannelSection extends React.PureComponent {
this.props.createChannel(newChannelName, amount).then(success, failure);
}
minChannelBid() {
return 0.000178;
}
render() {
const lbcInputHelp = __(
"This LBC remains yours and the deposit can be undone at any time."

View file

@ -181,10 +181,6 @@ class PublishForm extends React.PureComponent {
return !!myClaims.find(claim => claim.name === name);
}
minClaimBid() {
return 0.000097;
}
topClaimIsMine() {
const myClaimInfo = this.myClaimInfo();
const { claimsByUri } = this.props;
@ -307,16 +303,8 @@ class PublishForm extends React.PureComponent {
}
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({
bid: value,
bid: event.target.value,
});
}