Merge pull request #1105 from lbryio/balance-checks

Remove app side balance checks
This commit is contained in:
Liam Cardenas 2018-03-19 09:31:55 -07:00 committed by GitHub
commit 3be7f07dc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 9 deletions

View file

@ -57,6 +57,16 @@ class ChannelSection extends React.PureComponent {
return; 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({ this.setState({
creatingChannel: true, creatingChannel: true,

View file

@ -61,15 +61,6 @@ class PublishForm extends React.PureComponent {
} }
handleSubmit() { handleSubmit() {
const { balance } = this.props;
const { bid } = this.state;
if (bid > balance) {
this.handlePublishError({ message: 'insufficient funds' });
return;
}
this.setState({ this.setState({
submitting: true, submitting: true,
}); });