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) {
|
||||
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."
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue