Properly set default currency

This commit is contained in:
Alex Liebowitz 2016-08-08 05:47:20 -04:00
parent 3d20bc22aa
commit 761ba6f1e2

View file

@ -104,7 +104,7 @@ var PublishPage = React.createClass({
name: '', name: '',
bid: '', bid: '',
feeAmount: '', feeAmount: '',
feeCurrency: '', feeCurrency: 'USD',
nameResolved: false, nameResolved: false,
claimValue: 0.0, claimValue: 0.0,
fileInfo: null, fileInfo: null,
@ -285,7 +285,7 @@ var PublishPage = React.createClass({
<FormField type="radio" onChange={ () => { this.handleFeePrefChange(true) } } checked={this.state.isFee} /> { !this.state.isFee ? 'Choose fee...' : 'Fee ' } <FormField type="radio" onChange={ () => { this.handleFeePrefChange(true) } } checked={this.state.isFee} /> { !this.state.isFee ? 'Choose fee...' : 'Fee ' }
<span className={!this.state.isFee ? 'hidden' : ''}> <span className={!this.state.isFee ? 'hidden' : ''}>
<FormField type="text" onChange={this.handleFeeAmountChange} style={publishNumberStyle} /> <FormField type="select" onChange={this.handleFeeCurrencyChange}> <FormField type="text" onChange={this.handleFeeAmountChange} style={publishNumberStyle} /> <FormField type="select" onChange={this.handleFeeCurrencyChange}>
<option value="USD">dollars</option> <option value="USD">US Dollars</option>
<option value="LBC">LBRY credits</option> <option value="LBC">LBRY credits</option>
</FormField> </FormField>
</span> </span>