1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

dateCreated hotfix

This commit is contained in:
Matthias Kretschmann 2019-04-01 15:07:53 +02:00
parent 2ad4937d05
commit 57e33d8407
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 3 additions and 2 deletions

View File

@ -157,6 +157,7 @@ export default class Input extends PureComponent<InputProps, InputState> {
<div className={wrapClass}>
<DatePicker
selected={this.state.startDate}
// TODO: this needs to be able to receive this.props.onChange too
onChange={this.handleDateChange}
className={styles.input}
onFocus={this.toggleFocus}

View File

@ -35,7 +35,7 @@ class Publish extends Component<{}, PublishState> {
public state = {
currentStep: 1,
name: '',
dateCreated: '',
dateCreated: new Date().toISOString(),
description: '',
files: [],
price: 0,
@ -106,7 +106,7 @@ class Publish extends Component<{}, PublishState> {
private toStart = () => {
this.setState({
name: '',
dateCreated: '',
dateCreated: new Date().toISOString(),
description: '',
files: [],
price: 0,