Merge pull request #1105 from lbryio/balance-checks
Remove app side balance checks
This commit is contained in:
commit
3be7f07dc0
2 changed files with 10 additions and 9 deletions
|
@ -57,6 +57,16 @@ class ChannelSection extends React.PureComponent {
|
|||
|
||||
return;
|
||||
}
|
||||
if (newChannelBid === 0) {
|
||||
this.refs.newChannelName.showError(__('Bid value must be greater than 0.'));
|
||||
|
||||
return;
|
||||
}
|
||||
if (newChannelBid === balance) {
|
||||
this.refs.newChannelName.showError(__('Please decrease your bid to account for transaction fees.'));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
this.setState({
|
||||
creatingChannel: true,
|
||||
|
|
|
@ -61,15 +61,6 @@ class PublishForm extends React.PureComponent {
|
|||
}
|
||||
|
||||
handleSubmit() {
|
||||
const { balance } = this.props;
|
||||
const { bid } = this.state;
|
||||
|
||||
if (bid > balance) {
|
||||
this.handlePublishError({ message: 'insufficient funds' });
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
this.setState({
|
||||
submitting: true,
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue