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