-
Notifications
You must be signed in to change notification settings - Fork 414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixes console log warnings when bid is null or NaN #2010
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the only thing we should need it the value={bid || ''}
Could you revert the other changes and add a changelog update?
@@ -19,7 +19,6 @@ import LicenseType from './internal/license-type'; | |||
type Props = { | |||
publish: PublishParams => void, | |||
filePath: ?string, | |||
bid: ?number, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should keep this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On this, there was duplicate bid: ?number, and bid: number in the same Props {}. I removed the "?maybe" one and checked for errors as I published.
@@ -170,7 +169,7 @@ class PublishForm extends React.PureComponent<Props> { | |||
const totalAvailableBidAmount = previousBidAmount + balance; | |||
|
|||
let bidError; | |||
if (bid === 0) { | |||
if (!bid) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there will be a bidError when it's empty if we do this.
8583379
to
6dbbfe4
Compare
6dbbfe4
to
e7a3c57
Compare
No description provided.