min of 0.01, fix parse call

This commit is contained in:
Jeremy Kauffman 2017-06-08 19:25:42 -04:00
parent 29e21f8faf
commit 360a3d74c3

View file

@ -373,7 +373,7 @@ class PublishPage extends React.Component {
lbry lbry
.channel_new({ .channel_new({
channel_name: newChannelName, channel_name: newChannelName,
amount: parseInt(this.state.newChannelBid), amount: parseFloat(this.state.newChannelBid),
}) })
.then( .then(
() => { () => {
@ -594,7 +594,7 @@ class PublishPage extends React.Component {
className="form-field__input--inline" className="form-field__input--inline"
step="0.01" step="0.01"
placeholder="1.00" placeholder="1.00"
min="0" min="0.01"
onChange={event => this.handleFeeAmountChange(event)} onChange={event => this.handleFeeAmountChange(event)}
/> />
{" "} {" "}
@ -753,7 +753,7 @@ class PublishPage extends React.Component {
label={__("Deposit")} label={__("Deposit")}
postfix="LBC" postfix="LBC"
step="0.01" step="0.01"
min="1" min="0"
type="number" type="number"
helper={lbcInputHelp} helper={lbcInputHelp}
onChange={event => { onChange={event => {