fixes log warnings when bid is null
This commit is contained in:
parent
36d3235a5f
commit
e7a3c571a2
2 changed files with 6 additions and 6 deletions
|
@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
|||
|
||||
### Fixed
|
||||
* Invite table cutoff with large number of invites ([#1985](https://github.com/lbryio/lbry-desktop/pull/1985))
|
||||
* Satisfy console warnings in publishForm and validation messaging ([#2010](https://github.com/lbryio/lbry-desktop/pull/2010))
|
||||
|
||||
|
||||
## [0.25.1] - 2018-09-18
|
||||
|
|
|
@ -37,7 +37,6 @@ type Props = {
|
|||
name: ?string,
|
||||
tosAccepted: boolean,
|
||||
updatePublishForm: UpdatePublishFormData => void,
|
||||
bid: number,
|
||||
nameError: ?string,
|
||||
isResolvingUri: boolean,
|
||||
winningBidForClaimUri: number,
|
||||
|
@ -301,7 +300,7 @@ class PublishForm extends React.PureComponent<Props> {
|
|||
{!title && <div>{__('A title is required')}</div>}
|
||||
{!name && <div>{__('A URL is required')}</div>}
|
||||
{name && nameError && <div>{__('The URL you created is not valid')}</div>}
|
||||
{!bid && <div>{__('A bid amount is required')}</div>}
|
||||
{!bid && <div>{__('A deposit amount is required')}</div>}
|
||||
{!!bid && bidError && <div>{bidError}</div>}
|
||||
{uploadThumbnailStatus === THUMBNAIL_STATUSES.IN_PROGRESS && (
|
||||
<div>{__('Please wait for thumbnail to finish uploading')}</div>
|
||||
|
@ -535,7 +534,7 @@ class PublishForm extends React.PureComponent<Props> {
|
|||
step="any"
|
||||
label={__('Deposit')}
|
||||
postfix="LBC"
|
||||
value={bid}
|
||||
value={bid || ''}
|
||||
error={bidError}
|
||||
min="0"
|
||||
disabled={!name}
|
||||
|
|
Loading…
Reference in a new issue